• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/documentgenerator/dataprovider/dynamic.php
  • Класс: Bitrix\Crm\Integration\DocumentGenerator\DataProvider\Dynamic
  • Вызов: Dynamic::getExtendedList
static function getExtendedList(): array
{
	$result = [];

	$typesMap = Container::getInstance()->getDynamicTypesMap()->load([
		'isLoadStages' => false,
	]);
	$types = array_filter($typesMap->getTypes(), static function($type) {
		return (
			$type->getEntityTypeId() === static::getEntityTypeId()
			&& $type->getIsDocumentsEnabled()
		);
	});
	if(count($types) <= 0)
	{
		return $result;
	}

	foreach($types as $type)
	{
		static::extendProvidersListForType($result, $type, $typesMap->getCategories($type->getEntityTypeId()));
	}

	return $result;
}