• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/node/link.php
  • Класс: BitrixLandingNodeLink
  • Вызов: Link::getSearchableNode
static function getSearchableNode($block, $selector)
{
	$searchContent = [];

	$nodes = self::getNode($block, $selector);
	foreach ($nodes as $node)
	{
		if (!isset($node['text']))
		{
			continue;
		}
		$node['text'] = self::prepareSearchContent($node['text']);
		if ($node['text'] && !in_array($node['text'], $searchContent))
		{
			$searchContent[] = $node['text'];
		}
	}

	return $searchContent;
}