• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/component/gridserviceform.php
  • Класс: BitrixCatalogComponentGridServiceForm
  • Вызов: GridServiceForm::modifyProductFieldHeaders
protected function modifyProductFieldHeaders(array $headers): array
{
	$index = $this->getIndexFieldDescription($headers, 'id', static::formatFieldName('AVAILABLE'));
	if ($index !== null)
	{
		$row = $headers[$index];
		$row['editable'] = $this->isAllowedEditFields()
			? [
				'TYPE' => Types::CHECKBOX,
			]
			: false;
		$row['default'] = true;
		$headers[$index] = $row;
	}

	return array_values($headers);
}