public function RestResourceConfig::calculateDependencies in Drupal 9
Same name and namespace in other branches
- 8 core/modules/rest/src/Entity/RestResourceConfig.php \Drupal\rest\Entity\RestResourceConfig::calculateDependencies()
- 10 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 214
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;
}