8.3.x ConfigEntityBase.php public ConfigEntityBase::getDependencies()
8.0.x ConfigEntityBase.php public ConfigEntityBase::getDependencies()
8.1.x ConfigEntityBase.php public ConfigEntityBase::getDependencies()
8.2.x ConfigEntityBase.php public ConfigEntityBase::getDependencies()
8.4.x ConfigEntityBase.php public 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 468

Class

ConfigEntityBase
Defines a base configuration entity class.

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;
}