• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/assets/manager.php
  • Класс: BitrixLandingAssetsManager
  • Вызов: Manager::addAssetRecursive
protected function addAssetRecursive(string $code, $location = null): void
{
	$location = Location::verifyLocation($location);

	// just once, but if new location more critical - readd
	if (!$this->isNeedAddAsset($code, $location))
	{
		return;
	}

	// get data from CJSCore
	if ($ext = CJSCore::getExtInfo($code))
	{
		$asset = $ext;
	}
	else if ($ext = Extension::getConfig($code))
	{
		$asset = $ext;
	}
	// if name - it path
	else if ($type = self::detectType($code))
	{
		$asset = [$type => [$code]];
	}
	else
	{
		return;
	}

	$this->processAsset($asset, $location);
	$this->markAssetRegistered($code, $location);
}