You are here

public function EntityBase::getConfigDependencyKey in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::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/EntityBase.php, line 663

Class

EntityBase
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

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