• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/intranet/customsectionprovider.php
  • Класс: Bitrix\Crm\Integration\Intranet\CustomSectionProvider
  • Вызов: CustomSectionProvider::customSectionsCache
static function customSectionsCache(): CrmCustomSectionCache
{
	\Bitrix\Intranet\CustomSection\Entity\CustomSectionPageTable::cleanCache();
	if (self::$allAvailableCustomSections === null)
	{
		$sections = CustomSectionPageTable::getList([
			'select' => ['SETTINGS', 'CUSTOM_SECTION_ID'],
			'filter' => ['=MODULE_ID' => 'crm'],
			'cache' => ['ttl' => 3600],
		])->fetchAll();
		self::$allAvailableCustomSections = new CrmCustomSectionCache($sections);
	}
	return self::$allAvailableCustomSections;
}