You are here

public function FeaturesManager::getFullName in Features 8.3

Same name and namespace in other branches
  1. 8.4 src/FeaturesManager.php \Drupal\features\FeaturesManager::getFullName()

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.

Overrides FeaturesManagerInterface::getFullName

1 call to FeaturesManager::getFullName()
FeaturesManager::initConfigCollection in src/FeaturesManager.php
Loads configuration from storage into a property.

File

src/FeaturesManager.php, line 197

Class

FeaturesManager
The FeaturesManager provides helper functions for building packages.

Namespace

Drupal\features

Code

public function getFullName($type, $name) {
  if ($type == FeaturesManagerInterface::SYSTEM_SIMPLE_CONFIG || !$type) {
    return $name;
  }
  $definition = $this->entityTypeManager
    ->getDefinition($type);
  $prefix = $definition
    ->getConfigPrefix() . '.';
  return $prefix . $name;
}