public function ConfigEntityBase::getConfigDependencyName

public ConfigEntityBase::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 Entity::getConfigDependencyName

See also

\Drupal\Core\Config\Entity\ConfigDependencyManager

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php, line 482

Class

ConfigEntityBase
Defines a base configuration entity class.

Namespace

Drupal\Core\Config\Entity

Code

public function getConfigDependencyName() {
  return $this->getEntityType()->getConfigPrefix() . '.' . $this->id();
}

© 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!Config!Entity!ConfigEntityBase.php/function/ConfigEntityBase::getConfigDependencyName/8.1.x