interface DependentPluginDefinitionInterface
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Plugin/Definition/DependentPluginDefinitionInterface.php \Drupal\Core\Plugin\Definition\DependentPluginDefinitionInterface
- 10 core/lib/Drupal/Core/Plugin/Definition/DependentPluginDefinitionInterface.php \Drupal\Core\Plugin\Definition\DependentPluginDefinitionInterface
- 11.x core/lib/Drupal/Core/Plugin/Definition/DependentPluginDefinitionInterface.php \Drupal\Core\Plugin\Definition\DependentPluginDefinitionInterface
Provides an interface for a plugin definition that has dependencies.
Hierarchy
- interface \Drupal\Core\Plugin\Definition\DependentPluginDefinitionInterface
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\DefinitionView 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
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
DependentPluginDefinitionInterface::getConfigDependencies | public | function | Gets the config dependencies of this plugin definition. |
DependentPluginDefinitionInterface::setConfigDependencies | public | function | Sets the config dependencies of this plugin definition. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.