ConfigNamesMapper::getConfigData

public ConfigNamesMapper::getConfigData()

Returns an array with all configuration data.

Return value

array Configuration data keyed by configuration names.

Overrides ConfigMapperInterface::getConfigData

File

core/modules/config_translation/src/ConfigNamesMapper.php, line 415

Class

ConfigNamesMapper
Configuration mapper base implementation.

Namespace

Drupal\config_translation

Code

public function getConfigData() {
  $config_data = array();
  foreach ($this->getConfigNames() as $name) {
    $config_data[$name] = $this->configFactory->getEditable($name)->get();
  }
  return $config_data;
}
doc_Drupal
2016-10-29 08:54:17
Comments
Leave a Comment

Please login to continue.