protected function ConfigUpdater::getConfigType in Commerce Core 8.2
Gets the config type for a given config object.
Parameters
string $config_name: Name of the config object.
Return value
string Name of the config type. Either 'system.simple' or an entity type ID.
3 calls to ConfigUpdater::getConfigType()
- ConfigUpdater::delete in src/
Config/ ConfigUpdater.php - Deletes configuration.
- ConfigUpdater::import in src/
Config/ ConfigUpdater.php - Imports configuration from extension storage to active storage.
- ConfigUpdater::revert in src/
Config/ ConfigUpdater.php - Reverts configuration to the values from extension storage.
File
- src/
Config/ ConfigUpdater.php, line 242
Class
- ConfigUpdater
- Default implementation of the ConfigUpdaterInterface.
Namespace
Drupal\commerce\ConfigCode
protected function getConfigType($config_name) {
foreach ($this->typesByPrefix as $prefix => $config_type) {
if (strpos($config_name, $prefix) === 0) {
return $config_type;
}
}
return NULL;
}