- Модуль: iblock
- Путь к файлу: ~/bitrix/modules/iblock/lib/Integration/UI/EntityEditor/PropertyProvider.php
- Класс: BitrixIblockIntegrationUIEntityEditorPropertyProvider
- Вызов: PropertyProvider::getEntityFields
public function getEntityFields(): array
{
$fields = [
[
'name' => 'PROPERTY_TYPE',
'title' => Loc::getMessage('IBLOCK_ENTITY_EDITOR_PROPERTY_PROPERTY_TYPE'),
'type' => 'list',
'data' => [
'items' => $this->getPropertyTypeItems(),
],
'required' => true,
'disabled' => !is_null($this->getEntityId()) && $this->getEntityId() > 0,
],
[
'name' => 'CODE',
'title' => Loc::getMessage('IBLOCK_ENTITY_EDITOR_PROPERTY_CODE'),
'type' => 'text',
],
[
'name' => 'NAME',
'title' => Loc::getMessage('IBLOCK_ENTITY_EDITOR_PROPERTY_NAME'),
'type' => 'text',
'required' => true,
],
[
'name' => 'SORT',
'title' => Loc::getMessage('IBLOCK_ENTITY_EDITOR_PROPERTY_SORT'),
'type' => 'number',
'default_value' => 100,
'hint' => Loc::getMessage('IBLOCK_ENTITY_EDITOR_PROPERTY_SORT_HINT'),
],
[
'name' => 'ACTIVE',
'title' => Loc::getMessage('IBLOCK_ENTITY_EDITOR_PROPERTY_ACTIVE'),
'type' => 'boolean',
'default_value' => 'Y',
],
[
'name' => 'MULTIPLE',
'title' => Loc::getMessage('IBLOCK_ENTITY_EDITOR_PROPERTY_MULTIPLE'),
'type' => 'boolean',
],
[
'name' => 'IS_REQUIRED',
'title' => Loc::getMessage('IBLOCK_ENTITY_EDITOR_PROPERTY_IS_REQUIRED'),
'type' => 'boolean',
],
[
'name' => 'SEARCHABLE',
'title' => Loc::getMessage('IBLOCK_ENTITY_EDITOR_PROPERTY_SEARCHABLE'),
'type' => 'boolean',
],
];
return $this->clearHiddenFields($fields);
}