public function LocaleConfigManager::getStringNames

Gets configuration names associated with strings.

Parameters

array $lids: Array with string identifiers.

Return value

array Array of configuration object names.

File

drupal/core/modules/locale/lib/Drupal/locale/LocaleConfigManager.php, line 193
Contains \Drupal\locale\LocaleConfigManager.

Class

LocaleConfigManager
Manages localized configuration type plugins.

Namespace

Drupal\locale

Code

public function getStringNames(array $lids) {
  $names = array();
  $locations = $this->localeStorage
    ->getLocations(array(
    'sid' => $lids,
    'type' => 'configuration',
  ));
  foreach ($locations as $location) {
    $names[$location->name] = $location->name;
  }
  return $names;
}