function ConfigEntityStorage::getIDFromConfigName

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::getIDFromConfigName()
  2. 10 core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::getIDFromConfigName()
  3. 11.x core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::getIDFromConfigName()

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 151

Class

ConfigEntityStorage
Defines the storage class for configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

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.