public function RestResourceConfig::calculateDependencies in Drupal 8
Same name and namespace in other branches
- 9 core/modules/rest/src/Entity/RestResourceConfig.php \Drupal\rest\Entity\RestResourceConfig::calculateDependencies()
Calculates dependencies and stores them in the dependency property.
Return value
$this
Overrides ConfigEntityBase::calculateDependencies
See also
\Drupal\Core\Config\Entity\ConfigDependencyManager
File
- core/
modules/ rest/ src/ Entity/ RestResourceConfig.php, line 226
Class
- RestResourceConfig
- Defines a RestResourceConfig configuration entity class.
Namespace
Drupal\rest\EntityCode
public function calculateDependencies() {
parent::calculateDependencies();
foreach ($this
->getRestResourceDependencies()
->calculateDependencies($this) as $type => $dependencies) {
foreach ($dependencies as $dependency) {
$this
->addDependency($type, $dependency);
}
}
return $this;
}