function ConfigTest::setEnforcedDependencies
Same name in other branches
- 9 core/modules/config/tests/config_test/src/Entity/ConfigTest.php \Drupal\config_test\Entity\ConfigTest::setEnforcedDependencies()
- 8.9.x core/modules/config/tests/config_test/src/Entity/ConfigTest.php \Drupal\config_test\Entity\ConfigTest::setEnforcedDependencies()
- 11.x core/modules/config/tests/config_test/src/Entity/ConfigTest.php \Drupal\config_test\Entity\ConfigTest::setEnforcedDependencies()
Sets the enforced dependencies.
Parameters
array $dependencies: A config dependency array.
Return value
$this
See also
\Drupal\Core\Config\Entity\ConfigDependencyManager
File
-
core/
modules/ config/ tests/ config_test/ src/ Entity/ ConfigTest.php, line 189
Class
- ConfigTest
- Defines the ConfigTest configuration entity.
Namespace
Drupal\config_test\EntityCode
public function setEnforcedDependencies(array $dependencies) {
$this->dependencies['enforced'] = $dependencies;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.