function TestPluginDependency::setModuleHandler

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Plugin/PluginDependencyTraitTest.php \Drupal\Tests\Core\Plugin\TestPluginDependency::setModuleHandler()
  2. 8.9.x core/tests/Drupal/Tests/Core/Plugin/PluginDependencyTraitTest.php \Drupal\Tests\Core\Plugin\TestPluginDependency::setModuleHandler()
  3. 11.x core/tests/Drupal/Tests/Core/Plugin/PluginDependencyTraitTest.php \Drupal\Tests\Core\Plugin\TestPluginDependency::setModuleHandler()

File

core/tests/Drupal/Tests/Core/Plugin/PluginDependencyTraitTest.php, line 184

Class

TestPluginDependency

Namespace

Drupal\Tests\Core\Plugin

Code

public function setModuleHandler(ModuleHandlerInterface $module_handler) {
    $this->moduleHandler = $module_handler;
}

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