• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/assets/preprocessing/customextensions.php
  • Класс: BitrixLandingAssetsPreProcessingCustomExtensions
  • Вызов: CustomExtensions::view
static function view(Block $block): void
{
	$blockAssets = $block->getAssets();
	if (isset($blockAssets['ext']))
	{
		$assets = AssetsManager::getInstance();
		foreach ($blockAssets['ext'] as $ext)
		{
			$location = AssetsLocation::getDefaultLocation();
			if (in_array($ext, self::CRITICAL_EXTENSIONS, true))
			{
				$location = AssetsLocation::LOCATION_BEFORE_ALL;
			}
			$assets->addAsset($ext, $location);
		}
	}
}