function RulesUiManager::__construct

Overrides DefaultPluginManager::__construct

File

src/Ui/RulesUiManager.php, line 26

Class

RulesUiManager
Plugin manager for Rules Ui instances.

Namespace

Drupal\rules\Ui

Code

public function __construct(ModuleHandlerInterface $module_handler) {
    $this->alterInfo('rules_ui_info');
    $this->discovery = new ContainerDerivativeDiscoveryDecorator(new YamlDiscovery('rules_ui', $module_handler->getModuleDirectories()));
    $this->factory = new ContainerFactory($this, RulesUiHandlerInterface::class);
    $this->moduleHandler = $module_handler;
}