function RulesServiceProvider::alter

Overrides ServiceProviderBase::alter

File

src/RulesServiceProvider.php, line 17

Class

RulesServiceProvider
Swaps out the core condition manager.

Namespace

Drupal\rules

Code

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);
}