You are here

public function ConfigEntityBase::getConfigDependencyName 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::getConfigDependencyName()
  2. 9 core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php \Drupal\Core\Config\Entity\ConfigEntityBase::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 EntityBase::getConfigDependencyName

See also

\Drupal\Core\Config\Entity\ConfigDependencyManager

1 call to ConfigEntityBase::getConfigDependencyName()
ConfigEntityBase::getCacheTagsToInvalidate in core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
Returns the cache tags that should be used to invalidate caches.

File

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

Class

ConfigEntityBase

Namespace

Drupal\Core\Config\Entity

Code

public function getConfigDependencyName() {
  return $this
    ->getEntityType()
    ->getConfigPrefix() . '.' . $this
    ->id();
}