You are here

protected function PluginDependencyTrait::moduleHandler in Drupal 8

Same name and namespace in other branches
  1. 9 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 102

Class

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

Namespace

Drupal\Core\Plugin

Code

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