• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/assets/preprocessing/icon.php
  • Класс: BitrixLandingAssetsPreProcessingIcon
  • Вызов: Icon::updateIconsBeforeView
static function updateIconsBeforeView($iconData): array
{
	$newIcons = $iconData;

	foreach ($iconData as $vendor => $icons)
	{
		if (!isset(self::VENDOR_UPDATES[$vendor]))
		{
			continue;
		}

		$newVendor = self::VENDOR_UPDATES[$vendor];

		foreach ($icons as $icon => $content)
		{
			if (isset(self::ICON_UPDATES[$vendor]))
			{
				$currVendor = self::ICON_UPDATES[$vendor][$icon]['vendor'] ?? $newVendor;
				$newContent = self::ICON_UPDATES[$vendor][$icon]['content'] ?? $content;
				$newIcons[$currVendor][$icon] = $newContent;

				unset($newIcons[$vendor][$icon]);
				if (empty($newIcons[$vendor]))
				{
					unset($newIcons[$vendor]);
				}
			}
		}
	}

	return $newIcons;
}