public function ServiceContainerServiceProvider::alterContainerDefinition in Service Container 7
Same name in this branch
- 7 src/ServiceContainer/ServiceProvider/ServiceContainerServiceProvider.php \Drupal\service_container\ServiceContainer\ServiceProvider\ServiceContainerServiceProvider::alterContainerDefinition()
- 7 tests/modules/service_container_test_ctools/src/ServiceContainer/ServiceProvider/ServiceContainerServiceProvider.php \Drupal\service_container_test_ctools\ServiceContainer\ServiceProvider\ServiceContainerServiceProvider::alterContainerDefinition()
- 7 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.2 tests/modules/service_container_test_ctools/src/ServiceContainer/ServiceProvider/ServiceContainerServiceProvider.php \Drupal\service_container_test_ctools\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_ctools/ src/ ServiceContainer/ ServiceProvider/ ServiceContainerServiceProvider.php, line 35 - Contains \Drupal\service_container_test_ctools\ServiceContainer\ServiceProvider\ServiceContainerServiceProvider.
Class
- ServiceContainerServiceProvider
- Overrides some specific services/parameters for tests purposes.
Namespace
Drupal\service_container_test_ctools\ServiceContainer\ServiceProviderCode
public function alterContainerDefinition(&$container_definition) {
return;
}