class ServiceContainerServiceProvider in Service Container 7
Same name in this branch
- 7 src/ServiceContainer/ServiceProvider/ServiceContainerServiceProvider.php \Drupal\service_container\ServiceContainer\ServiceProvider\ServiceContainerServiceProvider
- 7 tests/modules/service_container_test_ctools/src/ServiceContainer/ServiceProvider/ServiceContainerServiceProvider.php \Drupal\service_container_test_ctools\ServiceContainer\ServiceProvider\ServiceContainerServiceProvider
- 7 tests/modules/service_container_test/src/ServiceContainer/ServiceProvider/ServiceContainerServiceProvider.php \Drupal\service_container_test\ServiceContainer\ServiceProvider\ServiceContainerServiceProvider
Same name and namespace in other branches
- 7.2 tests/modules/service_container_test/src/ServiceContainer/ServiceProvider/ServiceContainerServiceProvider.php \Drupal\service_container_test\ServiceContainer\ServiceProvider\ServiceContainerServiceProvider
Overrides some specific services/parameters for tests purposes.
Hierarchy
- class \Drupal\service_container_test\ServiceContainer\ServiceProvider\ServiceContainerServiceProvider implements ServiceProviderInterface
Expanded class hierarchy of ServiceContainerServiceProvider
File
- tests/
modules/ service_container_test/ src/ ServiceContainer/ ServiceProvider/ ServiceContainerServiceProvider.php, line 17 - Contains \Drupal\service_container_test\ServiceContainer\ServiceProvider\ServiceContainerServiceProvider.
Namespace
Drupal\service_container_test\ServiceContainer\ServiceProviderView source
class ServiceContainerServiceProvider implements ServiceProviderInterface {
/**
* {@inheritdoc}
*/
public function getContainerDefinition() {
return variable_get('service_container_test_definition', array());
}
/**
* {@inheritdoc}
*/
public function alterContainerDefinition(&$container_definition) {
return;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ServiceContainerServiceProvider:: |
public | function |
Allows to alter the container definition. Overrides ServiceProviderInterface:: |
|
ServiceContainerServiceProvider:: |
public | function |
Gets a service container definition. Overrides ServiceProviderInterface:: |