You are here

public function ConfigNamesMapper::getConfigData in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getConfigData()
  2. 9 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getConfigData()

File

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

Class

ConfigNamesMapper
Configuration mapper base implementation.

Namespace

Drupal\config_translation

Code

public function getConfigData() {
  $config_data = [];
  foreach ($this
    ->getConfigNames() as $name) {
    $config_data[$name] = $this->configFactory
      ->getEditable($name)
      ->get();
  }
  return $config_data;
}