You are here

public function ConfigEntityBase::getDependencies in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::getDependencies()
  2. 9 core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::getDependencies()

Gets the configuration dependencies.

Return value

array An array of dependencies, keyed by $type.

Overrides ConfigEntityInterface::getDependencies

See also

\Drupal\Core\Config\Entity\ConfigDependencyManager

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 435

Class

ConfigEntityBase

Namespace

Drupal\Core\Config\Entity

Code

public function getDependencies() {
  $dependencies = $this->dependencies;
  if (isset($dependencies['enforced'])) {

    // Merge the enforced dependencies into the list of dependencies.
    $enforced_dependencies = $dependencies['enforced'];
    unset($dependencies['enforced']);
    $dependencies = NestedArray::mergeDeep($dependencies, $enforced_dependencies);
  }
  return $dependencies;
}