• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/page/asset.php
  • Класс: BitrixMainPageAsset
  • Вызов: Asset::prepareString
private function prepareString()
{
	foreach ($this->strings as $location => $stringLocation)
	{
		foreach ($stringLocation as $key => $item)
		{
			/** @var  $assetTID - get first target where added asset */
			$this->strings[$location][$key]['MODE'] = ($item['MODE'] === null ? $this->targetList[$item['TARGET'][0]]['MODE'] : $item['MODE']);
		}
	}
}