8.3.x Entity.php public Entity::getConfigDependencyKey()
8.0.x Entity.php public Entity::getConfigDependencyKey()
8.1.x Entity.php public Entity::getConfigDependencyKey()
8.2.x Entity.php public Entity::getConfigDependencyKey()
8.4.x Entity.php public Entity::getConfigDependencyKey()

Gets the key that is used to store configuration dependencies.

Return value

string The key to be used in configuration dependencies when storing dependencies on entities of this type.

Overrides EntityInterface::getConfigDependencyKey

See also

\Drupal\Core\Entity\EntityTypeInterface::getConfigDependencyKey()

File

core/lib/Drupal/Core/Entity/Entity.php, line 613

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function getConfigDependencyKey() {
  return $this->getEntityType()->getConfigDependencyKey();
}