public function ServiceContainerServiceProvider::alterContainerDefinition in Service Container 7.2
Same name in this branch
- 7.2 src/ServiceContainer/ServiceProvider/ServiceContainerServiceProvider.php \Drupal\service_container\ServiceContainer\ServiceProvider\ServiceContainerServiceProvider::alterContainerDefinition()
- 7.2 tests/modules/service_container_test_ctools/src/ServiceContainer/ServiceProvider/ServiceContainerServiceProvider.php \Drupal\service_container_test_ctools\ServiceContainer\ServiceProvider\ServiceContainerServiceProvider::alterContainerDefinition()
- 7.2 tests/modules/service_container_test/src/ServiceContainer/ServiceProvider/ServiceContainerServiceProvider.php \Drupal\service_container_test\ServiceContainer\ServiceProvider\ServiceContainerServiceProvider::alterContainerDefinition()
Same name and namespace in other branches
- 7 tests/modules/service_container_test/src/ServiceContainer/ServiceProvider/ServiceContainerServiceProvider.php \Drupal\service_container_test\ServiceContainer\ServiceProvider\ServiceContainerServiceProvider::alterContainerDefinition()
Allows to alter the container definition.
Parameters
array $container_definition: An associative array with the following keys:
- parameters: Simple key-value store of container parameters.
- services: Services like defined in services.yml
- tags: Associative array keyed by tag names with array('service_name' => $tag_args) as values.
Overrides ServiceProviderInterface::alterContainerDefinition
See also
ServiceProviderInterface::getContainerDefinition()
File
- tests/
modules/ service_container_test/ src/ ServiceContainer/ ServiceProvider/ ServiceContainerServiceProvider.php, line 29 - Contains \Drupal\service_container_test\ServiceContainer\ServiceProvider\ServiceContainerServiceProvider.
Class
- ServiceContainerServiceProvider
- Overrides some specific services/parameters for tests purposes.
Namespace
Drupal\service_container_test\ServiceContainer\ServiceProviderCode
public function alterContainerDefinition(&$container_definition) {
return;
}