You are here

public function ArrayPluginDefinitionDecorator::setConfigDependencies in Plugin 8.2

Sets the dependencies.

Parameters

array[] $dependencies.: An array of dependencies keyed by the type of dependency. One example:

array(
  'module' => array(
    'node',
    'field',
    'image',
  ),
);

Return value

$this

Overrides PluginConfigDependenciesDefinitionInterface::setConfigDependencies

File

src/PluginDefinition/ArrayPluginDefinitionDecorator.php, line 206

Class

ArrayPluginDefinitionDecorator
Provides a plugin definition based on an array.

Namespace

Drupal\plugin\PluginDefinition

Code

public function setConfigDependencies(array $dependencies) {
  $this->arrayDefinition['config_dependencies'] = $dependencies;
  return $this;
}