- Модуль: catalog
- Путь к файлу: ~/bitrix/modules/catalog/lib/component/baseform.php
- Класс: BitrixCatalogComponentBaseForm
- Вызов: BaseForm::collectFieldConfigs
protected function collectFieldConfigs(): array
{
$leftWidth = 30;
$result = [
'left' => [
'name' => 'left',
'type' => 'column',
'data' => [
'width' => $leftWidth,
],
'elements' => [
[
'name' => 'main',
'title' => Loc::getMessage('CATALOG_C_F_MAIN_SECTION_TITLE'),
'type' => 'section',
'elements' => $this->getMainConfigElements(),
'data' => [
'isRemovable' => false,
],
'sort' => 100,
],
[
'name' => 'properties',
'title' => Loc::getMessage('CATALOG_C_F_PROPERTIES_SECTION_TITLE'),
'type' => 'section',
'elements' => $this->getPropertiesConfigElements(),
'data' => [
'isRemovable' => false,
],
'sort' => 200,
],
],
],
'right' => [
'name' => 'right',
'type' => 'column',
'data' => [
'width' => 100 - $leftWidth,
],
'elements' => [],
],
];
$catalogParameters = $this->getCatalogParametersSectionConfig();
if (!empty($catalogParameters))
{
$result['right']['elements'][] = $catalogParameters;
}
return $result;
}