You are here

protected function ConfigReverter::getFullName in Configuration Update Manager 8

Returns the full name of a config item.

Parameters

string $type: The config type, or '' to indicate $name is already prefixed.

string $name: The config name, without prefix.

Return value

string The config item's full name, or FALSE if there is an error.

5 calls to ConfigReverter::getFullName()
ConfigReverter::delete in src/ConfigReverter.php
Deletes a configuration item.
ConfigReverter::getFromActive in src/ConfigReverter.php
Gets the current active value of configuration.
ConfigReverter::getFromExtension in src/ConfigReverter.php
Gets the extension storage value of configuration.
ConfigReverter::import in src/ConfigReverter.php
Imports configuration from extension storage to active storage.
ConfigReverter::revert in src/ConfigReverter.php
Reverts configuration to the value from extension storage.

File

src/ConfigReverter.php, line 234

Class

ConfigReverter
Provides methods related to config reverting, deleting, and importing.

Namespace

Drupal\config_update

Code

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