function PluginDependencyTrait::moduleHandler

Same name in other branches
  1. 9 core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php \Drupal\Core\Plugin\PluginDependencyTrait::moduleHandler()
  2. 8.9.x core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php \Drupal\Core\Plugin\PluginDependencyTrait::moduleHandler()
  3. 11.x core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php \Drupal\Core\Plugin\PluginDependencyTrait::moduleHandler()

Wraps the module handler.

Return value

\Drupal\Core\Extension\ModuleHandlerInterface The module handler.

1 method overrides PluginDependencyTrait::moduleHandler()
TestPluginDependency::moduleHandler in core/tests/Drupal/Tests/Core/Plugin/PluginDependencyTraitTest.php
Wraps the module handler.

File

core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php, line 98

Class

PluginDependencyTrait
Provides a trait for calculating the dependencies of a plugin.

Namespace

Drupal\Core\Plugin

Code

protected function moduleHandler() {
    return \Drupal::moduleHandler();
}

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