You are here

class RulesServiceProvider in Rules 8.3

Swaps out the core condition manager.

Hierarchy

Expanded class hierarchy of RulesServiceProvider

File

src/RulesServiceProvider.php, line 12

Namespace

Drupal\rules
View 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

Namesort descending Modifiers Type Description Overrides
RulesServiceProvider::alter public function Modifies existing service definitions. Overrides ServiceProviderBase::alter
ServiceProviderBase::register public function Registers services to the container. Overrides ServiceProviderInterface::register 1