• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/page/asset.php
  • Класс: BitrixMainPageAsset
  • Вызов: Asset::getFullAssetPath
public function getFullAssetPath($sourcePath)
{
	$result = $this->getAssetPaths($sourcePath);

	if (is_array($result))
	{
		return $result["FULL_PATH"];
	}
	/** @noinspection PhpUndefinedClassInspection */
	if (CMain::IsExternalLink($sourcePath))
	{
		return $sourcePath;
	}

	return null;
}