• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/grid/row/action/baseaction.php
  • Класс: BitrixMainGridRowActionname
  • Вызов: name::getControl
public function getControl(array $rawFields): ?array
{
	$result = [
		'TEXT' => $this->getText(),
	];

	$propertyMap = [
		'default' => 'DEFAULT',
		'className' => 'ICONCLASS',
		'title' => 'TITLE',
		'href' => 'HREF',
		'onclick' => 'ONCLICK',
	];
	foreach ($propertyMap as $propertyName => $actionName)
	{
		$propertyValue = $this->{$propertyName} ?? null;
		if (isset($propertyValue))
		{
			$result[$actionName] = $propertyValue;
		}
	}

	return $result;
}