function StringDatabaseStorage::getLocations

Implements Drupal\locale\StringStorageInterface::getLocations().

Overrides StringStorageInterface::getLocations

File

drupal/core/modules/locale/lib/Drupal/locale/StringDatabaseStorage.php, line 95
Definition of Drupal\locale\StringDatabaseStorage.

Class

StringDatabaseStorage
Defines the locale string class.

Namespace

Drupal\locale

Code

function getLocations(array $conditions = array()) {
  $query = $this->connection
    ->select('locales_location', 'l', $this->options)
    ->fields('l');
  foreach ($conditions as $field => $value) {
    $query
      ->condition('l.' . $field, $value);
  }
  return $query
    ->execute()
    ->fetchAll();
}