function 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 155 
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 . '.'));
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
