You are here

protected function ConfigName::generateFullName in Update helper 2.x

Same name and namespace in other branches
  1. 8 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_helper

Code

protected function generateFullName($type, $name) {
  if ($type == 'system.simple' || !$type) {
    return $name;
  }
  $definition = $this
    ->entityTypeManager()
    ->getDefinition($type);
  $prefix = $definition
    ->getConfigPrefix() . '.';
  return $prefix . $name;
}