DependentPluginDefinitionInterface.php
Same filename in other branches
Namespace
Drupal\Core\Plugin\DefinitionFile
-
core/
lib/ Drupal/ Core/ Plugin/ Definition/ DependentPluginDefinitionInterface.php
View source
<?php
namespace Drupal\Core\Plugin\Definition;
/**
* Provides an interface for a plugin definition that has dependencies.
*/
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);
}
Interfaces
Title | Deprecated | Summary |
---|---|---|
DependentPluginDefinitionInterface | Provides an interface for a plugin definition that has dependencies. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.