You are here

public function Entity::getConfigDependencyName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/Entity.php \Drupal\Core\Entity\Entity::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 Entity::getConfigDependencyName()
ConfigEntityBase::getConfigDependencyName in core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
Gets the configuration dependency name.

File

core/lib/Drupal/Core/Entity/Entity.php, line 634
Contains \Drupal\Core\Entity\Entity.

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

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