protected function ConfigName::generateFullName in Update helper 8
Same name and namespace in other branches
- 2.x src/ConfigName.php \Drupal\update_helper\ConfigName::generateFullName()
Create full configuration name from config type and name.
Parameters
string $type: Config type.
string $name: Config name.
Return value
string Returns full configuration name.
1 call to ConfigName::generateFullName()
- ConfigName::getFullName in src/
ConfigName.php - Get full configuration name.
File
- src/
ConfigName.php, line 120
Class
- ConfigName
- Configuration name class for easier handling of configuration references.
Namespace
Drupal\update_helperCode
protected function generateFullName($type, $name) {
if ($type == 'system.simple' || !$type) {
return $name;
}
$definition = $this
->entityTypeManager()
->getDefinition($type);
$prefix = $definition
->getConfigPrefix() . '.';
return $prefix . $name;
}