• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/kanban/entity/dynamic.php
  • Класс: Bitrix\Crm\Kanban\Entity\Dynamic
  • Вызов: Dynamic::getCategories
public function getCategories(\CCrmPerms $permissions): array
{
	$result = [];
	if(!$this->factory->isCategoriesSupported())
	{
		return $result;
	}
	$router = Container::getInstance()->getRouter();
	$categories = $this->factory->getCategories();
	foreach($categories as $category)
	{
		$categoryId = $category->getId();
		$result[$categoryId] = $category->getData();
		$result[$categoryId]['url'] = $router->getKanbanUrl($this->getTypeId(), $categoryId);
	}

	return $result;
}