function ConfigEntityTypeInterface::getConfigPrefix
Same name in other branches
- 9 core/lib/Drupal/Core/Config/Entity/ConfigEntityTypeInterface.php \Drupal\Core\Config\Entity\ConfigEntityTypeInterface::getConfigPrefix()
- 10 core/lib/Drupal/Core/Config/Entity/ConfigEntityTypeInterface.php \Drupal\Core\Config\Entity\ConfigEntityTypeInterface::getConfigPrefix()
- 11.x core/lib/Drupal/Core/Config/Entity/ConfigEntityTypeInterface.php \Drupal\Core\Config\Entity\ConfigEntityTypeInterface::getConfigPrefix()
Gets the config prefix used by the configuration entity type.
The config prefix is used to prefix configuration entity IDs when they are stored in the configuration system. The default config prefix is constructed from the name of the module that provides the entity type and the ID of the entity type. If a config_prefix annotation is present it will be used in place of the entity type ID.
Prefixing with the module that provides the configuration entity type ensures that configuration entities depend on the module that provides the configuration entity type.
Return value
string The config prefix.
Throws
\Drupal\Core\Config\ConfigPrefixLengthException Exception thrown when the length of the prefix exceeds PREFIX_LENGTH.
1 method overrides ConfigEntityTypeInterface::getConfigPrefix()
- ConfigEntityType::getConfigPrefix in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityType.php - Gets the config prefix used by the configuration entity type.
File
-
core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityTypeInterface.php, line 63
Class
- ConfigEntityTypeInterface
- Provides an interface for a configuration entity type and its metadata.
Namespace
Drupal\Core\Config\EntityCode
public function getConfigPrefix();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.