public static function ConfigEntityStorageDecorator::getIDFromConfigName in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::getIDFromConfigName()
- 8.2 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::getIDFromConfigName()
- 4.x 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\ConfigCode
public static function getIDFromConfigName($config_name, $config_prefix) {
return substr($config_name, strlen($config_prefix . '.'));
}