You are here

public function RestResourceConfig::calculateDependencies in Drupal 10

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

Class

RestResourceConfig
Defines a RestResourceConfig configuration entity class.

Namespace

Drupal\rest\Entity

Code

public function calculateDependencies() {
  parent::calculateDependencies();
  foreach ($this
    ->getRestResourceDependencies()
    ->calculateDependencies($this) as $type => $dependencies) {
    foreach ($dependencies as $dependency) {
      $this
        ->addDependency($type, $dependency);
    }
  }
  return $this;
}