public static function ConfigEntityStorage::getIDFromConfigName in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::getIDFromConfigName()
Extracts the configuration entity ID from the full configuration name.
Parameters
string $config_name: The full configuration name to extract the ID from. E.g. 'views.view.archive'.
string $config_prefix: The config prefix of the configuration entity. E.g. 'views.view'
Return value
string The ID of the configuration entity.
Overrides ConfigEntityStorageInterface::getIDFromConfigName
4 calls to ConfigEntityStorage::getIDFromConfigName()
- BundleConfigImportValidate::onConfigImporterValidate in core/
lib/ Drupal/ Core/ Entity/ Event/ BundleConfigImportValidate.php - Ensures bundles that will be deleted are not in use.
- ConfigEntityStorage::importDelete in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityStorage.php - Delete entities upon synchronizing configuration changes.
- ConfigEntityStorage::importUpdate in core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityStorage.php - Updates entities upon synchronizing configuration changes.
- ConfigImporterFieldPurger::getFieldStoragesToPurge in core/
modules/ field/ src/ ConfigImporterFieldPurger.php - Gets the list of fields to purge before configuration synchronization.
File
- core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityStorage.php, line 163 - Contains \Drupal\Core\Config\Entity\ConfigEntityStorage.
Class
- ConfigEntityStorage
- Defines the storage class for configuration entities.
Namespace
Drupal\Core\Config\EntityCode
public static function getIDFromConfigName($config_name, $config_prefix) {
return substr($config_name, strlen($config_prefix . '.'));
}