You are here

public static function ConfigEntityStorageDecorator::getIDFromConfigName in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::getIDFromConfigName()
  2. 8 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::getIDFromConfigName()
  3. 8.2 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::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

File

webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php, line 142

Class

ConfigEntityStorageDecorator
Class ConfigEntityStorageDecorator.

Namespace

Drupal\webprofiler\Entity\Decorators\Config

Code

public static function getIDFromConfigName($config_name, $config_prefix) {
  return substr($config_name, strlen($config_prefix . '.'));
}