You are here

class TestPluginDependency in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Plugin/PluginDependencyTraitTest.php \Drupal\Tests\Core\Plugin\TestPluginDependency
  2. 9 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;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DependencyTrait::$dependencies protected property The object's dependencies.
DependencyTrait::addDependencies protected function Adds multiple dependencies.
DependencyTrait::addDependency protected function Adds a dependency.
PluginDependencyTrait::calculatePluginDependencies protected function Calculates and adds dependencies of a specific plugin instance. 1
PluginDependencyTrait::getPluginDependencies protected function Calculates and returns dependencies of a specific plugin instance.
TestPluginDependency::$moduleHandler protected property
TestPluginDependency::$themeHandler protected property
TestPluginDependency::getDependencies public function
TestPluginDependency::moduleHandler protected function Wraps the module handler. Overrides PluginDependencyTrait::moduleHandler
TestPluginDependency::setModuleHandler public function
TestPluginDependency::setThemeHandler public function
TestPluginDependency::themeHandler protected function Wraps the theme handler. Overrides PluginDependencyTrait::themeHandler