8.3.x EntityType.php public EntityType::getConfigDependencyKey()
8.0.x EntityType.php public EntityType::getConfigDependencyKey()
8.1.x EntityType.php public EntityType::getConfigDependencyKey()
8.2.x EntityType.php public EntityType::getConfigDependencyKey()
8.4.x EntityType.php EntityType::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 EntityTypeInterface::getConfigDependencyKey

2 methods override EntityType::getConfigDependencyKey()
ConfigEntityType::getConfigDependencyKey in core/lib/Drupal/Core/Config/Entity/ConfigEntityType.php
Gets the key that is used to store configuration dependencies.
ContentEntityType::getConfigDependencyKey in core/lib/Drupal/Core/Entity/ContentEntityType.php
Gets the key that is used to store configuration dependencies.

File

core/lib/Drupal/Core/Entity/EntityType.php, line 822

Class

EntityType
Provides an implementation of an entity type and its metadata.

Namespace

Drupal\Core\Entity

Code

public function getConfigDependencyKey() {
  // Return 'content' for the default implementation as important distinction
  // is that dependencies on other configuration entities are hard
  // dependencies and have to exist before creating the dependent entity.
  return 'content';
}