• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/ui/navigationbarpanel.php
  • Класс: Bitrix\Crm\UI\NavigationBarPanel
  • Вызов: NavigationBarPanel::getAllowableItemsList
private function getAllowableItemsList(bool $withAutomation = true): array
{
	$names = [
		self::ID_KANBAN,
		self::ID_LIST,
		self::ID_ACTIVITY,
		self::ID_CALENDAR,
		self::ID_DEADLINES
	];

	if ($withAutomation)
	{
		$names[] = self::ID_AUTOMATION;
	}

	if (
		\Bitrix\Main\Config\Option::get('crm', 'enable_entity_uncompleted_act', 'Y') !== 'Y'
		|| !\Bitrix\Crm\Settings\Crm::isUniversalActivityScenarioEnabled()
	)
	{
		unset($names[array_search(self::ID_ACTIVITY, $names)]);
	}

	return $names;
}