• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/v2/Section/SectionRepository.php
  • Класс: BitrixCatalogv2SectionSectionRepository
  • Вызов: SectionRepository::createCollection
protected function createCollection(array $entityFields = []): SectionCollection
{
	$collection = $this->factory->createCollection();

	foreach ($entityFields as $fields)
	{
		$section = $this->createEntity($fields);
		$collection->add($section);
	}

	return $collection;
}