class TestPluginDependency

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Plugin/PluginDependencyTraitTest.php \Drupal\Tests\Core\Plugin\TestPluginDependency

Hierarchy

Expanded class hierarchy of TestPluginDependency

File

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

Namespace

Drupal\Tests\Core\Plugin
View source
class TestPluginDependency {
  use PluginDependencyTrait {
    calculatePluginDependencies as public;
    getPluginDependencies as public;
  }
  protected $moduleHandler;
  protected $themeHandler;
  public function setModuleHandler(ModuleHandlerInterface $module_handler) {
    $this->moduleHandler = $module_handler;
  }
  public function setThemeHandler(ThemeHandlerInterface $theme_handler) {
    $this->themeHandler = $theme_handler;
  }
  protected function moduleHandler() {
    return $this->moduleHandler;
  }
  protected function themeHandler() {
    return $this->themeHandler;
  }
  
  /**
   * @return array[]
   */
  public function getDependencies() {
    return $this->dependencies;
  }

}

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