You are here

public function EntityBase::getConfigDependencyName in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::getConfigDependencyName()

Gets the configuration dependency name.

Configuration entities can depend on content and configuration entities. They store an array of content and config dependency names in their "dependencies" key.

Return value

string The configuration dependency name.

Overrides EntityInterface::getConfigDependencyName

See also

\Drupal\Core\Config\Entity\ConfigDependencyManager

1 method overrides EntityBase::getConfigDependencyName()
ConfigEntityBase::getConfigDependencyName in core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
Gets the configuration dependency name.

File

core/lib/Drupal/Core/Entity/EntityBase.php, line 614

Class

EntityBase
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function getConfigDependencyName() {
  return $this
    ->getEntityTypeId() . ':' . $this
    ->bundle() . ':' . $this
    ->uuid();
}