• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/ui/tools/toolbar.php
  • Класс: Bitrix\Crm\UI\Tools\ToolBar
  • Вызов: ToolBar::isCurrentViewKanbanView
static function isCurrentViewKanbanView(int $entityTypeId): bool
{
	$currentView = Container::getInstance()
		->getRouter()
		->getCurrentListView($entityTypeId)
	;

	$kanbanViewTypes = [
		Router::LIST_VIEW_KANBAN,
		Router::LIST_VIEW_ACTIVITY,
		Router::LIST_VIEW_DEADLINES
	];
	return in_array($currentView, $kanbanViewTypes, true);
}