interface DependentPluginDefinitionInterface in Drupal 8
Same name and namespace in other branches
- 9 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
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DependentPluginDefinitionInterface:: |
public | function | Gets the config dependencies of this plugin definition. | |
DependentPluginDefinitionInterface:: |
public | function | Sets the config dependencies of this plugin definition. |