• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/grid/panel/groupaction.php
  • Класс: BitrixIblockGridPanelGroupAction
  • Вызов: GroupAction::actionCodeTranslitPanel
public function actionCodeTranslitPanel(array $params = [])
{
	$name = (isset($params['NAME']) && $params['NAME'] !== ''
		? $params['NAME']
		: Loc::getMessage('IBLOCK_GRID_PANEL_ACTION_CODE_TRANSLITERATION')
	);

	$params['APPLY_BUTTON_ID'] = 'code_translit_confirm';
	$params['DEFAULT_CONFIRM_MESSAGE'] = Loc::getMessage('IBLOCK_GRID_PANEL_ACTION_CODE_TRANSLITERATION_CONFIRM');

	if ($this->isUiGrid())
	{
		return [
			'name' => $name,
			'type' => 'multicontrol',
			'action' => [
				[
					'ACTION' => MainGridPanelActions::RESET_CONTROLS,
				],
				[
					'ACTION' => MainGridPanelActions::CREATE,
					'DATA' => [$this->getApplyButtonWithConfirm($params)],
				],
			],
		];
	}
	else
	{
		return $name;
	}
}