function CategorizingPluginManager::__construct

Replace the constructor so we can instantiate a stub.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Extension\ModuleExtensionList $module_extension_list: The module extension list.

Overrides DefaultPluginManager::__construct

File

core/tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php, line 127

Class

CategorizingPluginManager
Class that allows testing the trait.

Namespace

Drupal\Tests\Core\Plugin

Code

public function __construct(ModuleHandlerInterface $module_handler, ModuleExtensionList $module_extension_list) {
  $this->moduleHandler = $module_handler;
  $this->moduleExtensionList = $module_extension_list;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.