function 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\PluginCode
protected function moduleHandler() {
  return \Drupal::moduleHandler();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.