- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/component/itemlist.php
- Класс: Bitrix\Crm\Component\ItemList
- Вызов: ItemList::prepareFilter
protected function prepareFilter(): array
{
$limits = null;
$searchRestriction = RestrictionManager::getSearchLimitRestriction();
if($searchRestriction->isExceeded($this->entityTypeId))
{
$limits = $searchRestriction->prepareStubInfo([
'ENTITY_TYPE_ID' => $this->entityTypeId
]);
}
return [
'FILTER_ID' => $this->getGridId(),
'GRID_ID' => $this->getGridId(),
'FILTER' => $this->getDefaultFilterFields(),
'FILTER_PRESETS' => $this->getDefaultFilterPresets(),
'ENABLE_LABEL' => true,
'RESET_TO_DEFAULT_MODE' => true,
'DISABLE_SEARCH' => false,
'ENABLE_LIVE_SEARCH' => true,
'LIMITS' => $limits,
'ENABLE_ADDITIONAL_FILTERS' => true,
'ENABLE_FIELDS_SEARCH' => 'Y',
'HEADERS_SECTIONS' => $this->getHeaderSections(),
'CONFIG' => [
'popupColumnsCount' => 4,
'popupWidth' => 800,
'showPopupInCenter' => true,
],
];
}