class DataPolicyServiceProvider in Data Policy 8
Class DataPolicyServiceProvider.
@package Drupal\data_policy
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\data_policy\DataPolicyServiceProvider
Expanded class hierarchy of DataPolicyServiceProvider
File
- src/
DataPolicyServiceProvider.php, line 14
Namespace
Drupal\data_policyView source
class DataPolicyServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
$container
->getDefinition('module_installer')
->setClass(DataPolicyModuleInstaller::class)
->addArgument(new Reference('entity_type.manager'))
->addArgument(new Reference('config.factory'));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DataPolicyServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |