LocaleConfigManager::getStringNames

public LocaleConfigManager::getStringNames(array $lids)

Gets configuration names associated with strings.

Parameters

array $lids: Array with string identifiers.

Return value

array Array of configuration object names.

File

core/modules/locale/src/LocaleConfigManager.php, line 324

Class

LocaleConfigManager
Manages configuration supported in part by interface translation.

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;
}
doc_Drupal
2016-10-29 09:23:54
Comments
Leave a Comment

Please login to continue.