• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/engine/configurator.php
  • Класс: BitrixMainEngineConfigurator
  • Вызов: Configurator::onBuildConfigurationOfActions
private function onBuildConfigurationOfActions(Controller $controller)
{
	//todo set name of the controller in event name? or use filter?
	$event = new Event(
		'main',
		static::EVENT_ON_BUILD_ACTIONS,
		array(
			'controller' => $controller,
		)
	);
	$event->send($this);

	$newConfiguration = array();
	foreach ($event->getResults() as $eventResult)
	{
		if ($eventResult->getType() != EventResult::SUCCESS)
		{
			continue;
		}

		$parameters = $eventResult->getParameters();
		if (isset($parameters['extraActions']) && is_array($parameters['extraActions']))
		{
			//configuration in $this->configureActions() has more priority then configuration which was provided by event
			$newConfiguration = array_merge($newConfiguration, $parameters['extraActions']);
		}
	}

	return $newConfiguration;
}