• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/assets/resourcecollection.php
  • Класс: BitrixLandingAssetsResourceCollection
  • Вызов: ResourceCollection::add
public function add(string $path, string $type, int $location): void
{
	// overwrite only if new location more
	if (
		$this->isResourceAdded($path)
		&& !$this->isNeedRaiseLocation($path, $location)
	)
	{
		return;
	}

	$this->resources[$path] = [
		self::KEY_PATH => $path,
		self::KEY_TYPE => $type,
		self::KEY_LOCATION => $location,
		self::KEY_ORDER => $this->order++,
	];
}