function RegisterEventSubscribersPass::process
Same name in other branches
- 9 core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterEventSubscribersPass.php \Drupal\Core\DependencyInjection\Compiler\RegisterEventSubscribersPass::process()
- 8.9.x core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterEventSubscribersPass.php \Drupal\Core\DependencyInjection\Compiler\RegisterEventSubscribersPass::process()
- 10 core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterEventSubscribersPass.php \Drupal\Core\DependencyInjection\Compiler\RegisterEventSubscribersPass::process()
File
-
core/
lib/ Drupal/ Core/ DependencyInjection/ Compiler/ RegisterEventSubscribersPass.php, line 27
Class
- RegisterEventSubscribersPass
- Wraps the Symfony event subscriber pass to use different tag names.
Namespace
Drupal\Core\DependencyInjection\CompilerCode
public function process(ContainerBuilder $container) : void {
$this->renameTag($container, 'event_subscriber', 'kernel.event_subscriber');
$this->pass
->process($container);
$this->renameTag($container, 'kernel.event_subscriber', 'event_subscriber');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.