You are here

public static function ConfigurationItem::fromConfigTypeToConfigString in Features 8.3

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

Calculates the config type usable in configuration.

By default Drupal uses system.simple as config type, which cannot be used inside configuration itself. Therefore convert it to system_simple.

Parameters

string $type: The config type provided by core.

Return value

string The config type as string without dots.

File

src/ConfigurationItem.php, line 132

Class

ConfigurationItem
Contains some configuration together with metadata like the name + package.

Namespace

Drupal\features

Code

public static function fromConfigTypeToConfigString($type) {
  return $type == 'system.simple' ? FeaturesManagerInterface::SYSTEM_SIMPLE_CONFIG : $type;
}