• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/grid/row/actions/elementrowactionsprovider.php
  • Класс: BitrixIblockGridRowActionsElementRowActionsProvider
  • Вызов: ElementRowActionsProvider::prepareActions
public function prepareActions(): array
{
	$result = [
		new DetailViewItem(),
		new DeleteSectionItem($this->rights), // check by concrete section
	];

	if ($this->getIblockRightsChecker()->canEditElements())
	{
		array_push($result, ... [
			new EditItem(),
			new CopyElementItem(),
			new CreateCodeItem($this->getIblockId(), $this->rights),
			new DeactivateElementItem($this->getIblockId(), $this->rights),
			new ActivateElementItem($this->getIblockId(), $this->rights),
			new ClearCounterItem($this->getIblockId(), $this->rights),
		]);
	}

	if ($this->getIblockRightsChecker()->canDeleteElements())
	{
		$result[] = new DeleteElementItem($this->rights);
	}

	return $result;
}