public function RegisterLazyRouteFilters::process in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterLazyRouteFilters.php \Drupal\Core\DependencyInjection\Compiler\RegisterLazyRouteFilters::process()
You can modify the container here before it is dumped to PHP code.
Parameters
ContainerBuilder $container:
Overrides CompilerPassInterface::process
File
- core/
lib/ Drupal/ Core/ DependencyInjection/ Compiler/ RegisterLazyRouteFilters.php, line 22 - Contains \Drupal\Core\DependencyInjection\Compiler\RegisterLazyRouteFilters.
Class
- RegisterLazyRouteFilters
- Registers all lazy route filters onto the lazy route filter.
Namespace
Drupal\Core\DependencyInjection\CompilerCode
public function process(ContainerBuilder $container) {
if (!$container
->hasDefinition('route_filter.lazy_collector')) {
return;
}
$service_ids = [];
foreach ($container
->findTaggedServiceIds('route_filter') as $id => $attributes) {
$service_ids[$id] = $id;
}
$container
->getDefinition('route_filter.lazy_collector')
->addArgument($service_ids);
}