W3cubDocs

/Drupal 8

public function Entity::getConfigDependencyKey

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();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Entity.php/function/Entity::getConfigDependencyKey/8.1.x