function AttributeInterface::setDependencies
Sets the dependencies for this attribute class.
Parameters
array{"class"?: list<class-string>, "interface"?: list<class-string>, "trait"?: list<class-string>, "provider"?: list<string>}|null $dependencies: The list of dependencies, keyed by type. If the type is 'class', 'trait', or 'interface', the values for the type are class names. If the type is 'provider', the values for the type are provider names.
1 method overrides AttributeInterface::setDependencies()
- AttributeBase::setDependencies in core/
lib/ Drupal/ Component/ Plugin/ Attribute/ AttributeBase.php
File
-
core/
lib/ Drupal/ Component/ Plugin/ Attribute/ AttributeInterface.php, line 73
Class
- AttributeInterface
- Defines a common interface for classed attributes.
Namespace
Drupal\Component\Plugin\AttributeCode
public function setDependencies(?array $dependencies) : void;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.