class TestPluginDependency

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Plugin/PluginDependencyTraitTest.php \Drupal\Tests\Core\Plugin\TestPluginDependency
  2. 10 core/tests/Drupal/Tests/Core/Plugin/PluginDependencyTraitTest.php \Drupal\Tests\Core\Plugin\TestPluginDependency
  3. 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;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title 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 Overrides PluginDependencyTrait::moduleHandler
TestPluginDependency::setModuleHandler public function
TestPluginDependency::setThemeHandler public function
TestPluginDependency::themeHandler protected function Overrides PluginDependencyTrait::themeHandler

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