You are here

public function PluginConfigDependenciesDefinitionInterface::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

1 method overrides PluginConfigDependenciesDefinitionInterface::setConfigDependencies()
ArrayPluginDefinitionDecorator::setConfigDependencies in src/PluginDefinition/ArrayPluginDefinitionDecorator.php
Sets the dependencies.

File

src/PluginDefinition/PluginConfigDependenciesDefinitionInterface.php, line 29

Class

PluginConfigDependenciesDefinitionInterface
Defines a plugin definition that includes config dependencies.

Namespace

Drupal\plugin\PluginDefinition

Code

public function setConfigDependencies(array $dependencies);