You are here

public static function ConfigName::createByFullName in Update helper 8

Same name and namespace in other branches
  1. 2.x src/ConfigName.php \Drupal\update_helper\ConfigName::createByFullName()

Create ConfigName instance from full configuration name.

Parameters

string $full_config_name: Full config name.

Return value

ConfigName Return instance of ConfigName.

4 calls to ConfigName::createByFullName()
ConfigHandler::exportConfigurations in src/ConfigHandler.php
Export new configurations for modules.
ConfigHandler::getConfigNames in src/ConfigHandler.php
Get list of ConfigName instances from list of config names.
ConfigNameTest::testCreateByFullName in tests/src/Kernel/ConfigNameTest.php
Test creation of class by full name.
Updater::importConfigs in src/Updater.php
Imports configurations.

File

src/ConfigName.php, line 44

Class

ConfigName
Configuration name class for easier handling of configuration references.

Namespace

Drupal\update_helper

Code

public static function createByFullName($full_config_name) {
  $config_name = new static();
  $configPair = $config_name
    ->parseFullName($full_config_name);
  $config_name->type = $configPair['type'];
  $config_name->name = $configPair['name'];
  return $config_name;
}