- Модуль: catalog
- Путь к файлу: ~/bitrix/modules/catalog/lib/component/baseform.php
- Класс: BitrixCatalogComponentBaseForm
- Вызов: BaseForm::getNameCodeDescription
protected function getNameCodeDescription(): array
{
return [
[
'entity' => 'product',
'name' => 'NAME-CODE',
'originalName' => 'NAME-CODE',
'title' => Loc::getMessage('ELEMENT_ENTITY_NAME_FIELD'),
'type' => 'name-code',
'editable' => $this->isAllowedEditFields(),
'required' => 'true',
'placeholders' => [
'creation' => Loc::getMessage('CATALOG_C_F_NEW_PRODUCT_PLACEHOLDER'),
],
'defaultValue' => null,
'optionFlags' => 1,
],
];
}