public static function ConfigEntityStorage::getIDFromConfigName
public static ConfigEntityStorage::getIDFromConfigName($config_name, $config_prefix)
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
- core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php, line 158
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 . '.')); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!Entity!ConfigEntityStorage.php/function/ConfigEntityStorage::getIDFromConfigName/8.1.x