public function ConfigSyncLister::listConfigTypes in Configuration Synchronizer 8
Same name and namespace in other branches
- 8.2 src/ConfigSyncLister.php \Drupal\config_sync\ConfigSyncLister::listConfigTypes()
File
- src/
ConfigSyncLister.php, line 167
Class
- ConfigSyncLister
- Provides methods related to listing configuration changes.
Namespace
Drupal\config_syncCode
public function listConfigTypes() {
if (empty($this->configTypes)) {
$definitions = $this->configUpdateLister
->listTypes();
$config_types = array_map(function (EntityTypeInterface $definition) {
return $definition
->getLabel();
}, $definitions);
$config_types['system_simple'] = $this
->t('Simple configuration');
// Sort the entity types by label.
uasort($config_types, 'strnatcasecmp');
$this->configTypes = $config_types;
}
return $this->configTypes;
}