UiFormConfiguration::unsetField

  1. Bitrix24 API (v. 23.675.0)
  2. catalog
  3. UiFormConfiguration
  4. unsetField
  • Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/update/uiformconfiguration.php
  • Класс: BitrixCatalogUpdateUiFormConfiguration
  • Вызов: UiFormConfiguration::unsetField
static function unsetField(array $formSettings, array $index): array
{
	if (!static::isRowExists($formSettings, $index))
	{
		return $formSettings;
	}

	$column = $index['COLUMN'];
	$list = $index['LIST'];
	$row = $index['ROW'];

	unset($formSettings[$column]['elements'][$list]['elements'][$row]);
	$formSettings[$column]['elements'][$list]['elements'] = array_values(
		$formSettings[$column]['elements'][$list]['elements']
	);

	return $formSettings;
}

Добавить комментарий