trait DependentPluginDefinitionTrait in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Plugin/Definition/DependentPluginDefinitionTrait.php \Drupal\Core\Plugin\Definition\DependentPluginDefinitionTrait
Provides a trait for a plugin definition that has dependencies.
Hierarchy
- trait \Drupal\Core\Plugin\Definition\DependentPluginDefinitionTrait
1 file declares its use of DependentPluginDefinitionTrait
- LayoutDefinition.php in core/
lib/ Drupal/ Core/ Layout/ LayoutDefinition.php
File
- core/
lib/ Drupal/ Core/ Plugin/ Definition/ DependentPluginDefinitionTrait.php, line 8
Namespace
Drupal\Core\Plugin\DefinitionView source
trait DependentPluginDefinitionTrait {
/**
* The dependencies of this plugin definition.
*
* @var array
*
* @see \Drupal\Core\Config\Entity\ConfigDependencyManager
*/
protected $config_dependencies = [];
/**
* {@inheritdoc}
*/
public function getConfigDependencies() {
return $this->config_dependencies;
}
/**
* {@inheritdoc}
*/
public function setConfigDependencies(array $config_dependencies) {
$this->config_dependencies = $config_dependencies;
return $this;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DependentPluginDefinitionTrait:: |
protected | property | The dependencies of this plugin definition. | |
DependentPluginDefinitionTrait:: |
public | function | ||
DependentPluginDefinitionTrait:: |
public | function |