public static function ConfigStorageController::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.

5 calls to ConfigStorageController::getIDFromConfigName()
ConfigStorageController::importDelete in drupal/core/lib/Drupal/Core/Config/Entity/ConfigStorageController.php
Delete configuration upon synchronizing configuration changes.
ConfigStorageController::importUpdate in drupal/core/lib/Drupal/Core/Config/Entity/ConfigStorageController.php
Updates configuration upon synchronizing configuration changes.
entity_entity_bundle_delete in drupal/core/modules/entity/entity.module
Implements hook_entity_bundle_delete().
entity_entity_bundle_rename in drupal/core/modules/entity/entity.module
Implements hook_entity_bundle_rename().
_breakpoint_delete_breakpoints in drupal/core/modules/breakpoint/breakpoint.module
Remove breakpoints from all disabled themes or uninstalled modules.

File

drupal/core/lib/Drupal/Core/Config/Entity/ConfigStorageController.php, line 192
Definition of Drupal\Core\Config\Entity\ConfigStorageController.

Class

ConfigStorageController
Defines the storage controller 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 . '.'));
}