public static function ConfigEntityStorage::getIDFromConfigName in Drupal 8
Same name and namespace in other branches
- 9 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; for example, 'views.view.archive'.
string $config_prefix: The config prefix of the configuration entity; for example, 'views.view'.
Return value
string The ID of the configuration entity.
Overrides ConfigEntityStorageInterface::getIDFromConfigName
5 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.
- ConfigImportSubscriber::getWorkflow in core/
modules/ content_moderation/ src/ EventSubscriber/ ConfigImportSubscriber.php - Get the workflow entity object from the configuration name.
File
- core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityStorage.php, line 162
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 . '.'));
}