function RegisterServicesForDestructionPass::process
Same name in other branches
- 9 core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterServicesForDestructionPass.php \Drupal\Core\DependencyInjection\Compiler\RegisterServicesForDestructionPass::process()
- 8.9.x core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterServicesForDestructionPass.php \Drupal\Core\DependencyInjection\Compiler\RegisterServicesForDestructionPass::process()
- 10 core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterServicesForDestructionPass.php \Drupal\Core\DependencyInjection\Compiler\RegisterServicesForDestructionPass::process()
File
-
core/
lib/ Drupal/ Core/ DependencyInjection/ Compiler/ RegisterServicesForDestructionPass.php, line 20
Class
- RegisterServicesForDestructionPass
- Adds services to the "kernel.destructable_services" container parameter.
Namespace
Drupal\Core\DependencyInjection\CompilerCode
public function process(ContainerBuilder $container) : void {
$services = $container->findTaggedServiceIds('needs_destruction');
$container->setParameter('kernel.destructable_services', array_keys($services));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.