You are here

public static function ConfigurationItem::fromConfigStringToConfigType in Features 8.3

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

Converts a config type string in configuration back to the config type.

Parameters

string $type: The config type as string without dots.

Return value

string The config type provided by core.

3 calls to ConfigurationItem::fromConfigStringToConfigType()
ConfigurationItemTest::testFromConfigStringToConfigType in tests/src/Unit/ConfigurationItemTest.php
@covers ::fromConfigStringToConfigType
FeaturesDiffForm::submitForm in modules/features_ui/src/Form/FeaturesDiffForm.php
Form submission handler.
FeaturesEditForm::importMissing in modules/features_ui/src/Form/FeaturesEditForm.php
Imports the configuration missing from the active store.

File

src/ConfigurationItem.php, line 145

Class

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

Namespace

Drupal\features

Code

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