You are here

interface DependentPluginDefinitionInterface in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Plugin/Definition/DependentPluginDefinitionInterface.php \Drupal\Core\Plugin\Definition\DependentPluginDefinitionInterface
  2. 10 core/lib/Drupal/Core/Plugin/Definition/DependentPluginDefinitionInterface.php \Drupal\Core\Plugin\Definition\DependentPluginDefinitionInterface

Provides an interface for a plugin definition that has dependencies.

Hierarchy

Expanded class hierarchy of DependentPluginDefinitionInterface

All classes that implement DependentPluginDefinitionInterface

3 files declare their use of DependentPluginDefinitionInterface
LayoutDefinition.php in core/lib/Drupal/Core/Layout/LayoutDefinition.php
PluginDependencyTrait.php in core/lib/Drupal/Core/Plugin/PluginDependencyTrait.php
PluginDependencyTraitTest.php in core/tests/Drupal/Tests/Core/Plugin/PluginDependencyTraitTest.php

File

core/lib/Drupal/Core/Plugin/Definition/DependentPluginDefinitionInterface.php, line 8

Namespace

Drupal\Core\Plugin\Definition
View source
interface DependentPluginDefinitionInterface {

  /**
   * Gets the config dependencies of this plugin definition.
   *
   * @return array
   *   An array of config dependencies.
   *
   * @see \Drupal\Core\Plugin\PluginDependencyTrait::calculatePluginDependencies()
   */
  public function getConfigDependencies();

  /**
   * Sets the config dependencies of this plugin definition.
   *
   * @param array $config_dependencies
   *   An array of config dependencies.
   *
   * @return $this
   */
  public function setConfigDependencies(array $config_dependencies);

}

Members

Namesort descending Modifiers Type Description Overrides
DependentPluginDefinitionInterface::getConfigDependencies public function Gets the config dependencies of this plugin definition.
DependentPluginDefinitionInterface::setConfigDependencies public function Sets the config dependencies of this plugin definition.