class RulesServiceProvider in Rules 8.3
Swaps out the core condition manager.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\rules\RulesServiceProvider
Expanded class hierarchy of RulesServiceProvider
File
- src/
RulesServiceProvider.php, line 12
Namespace
Drupal\rulesView source
class RulesServiceProvider extends ServiceProviderBase {
/**
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
// Overrides the core condition plugin manager service with our own.
$definition = $container
->getDefinition('plugin.manager.condition');
$definition
->setClass(ConditionManager::class);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RulesServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |