function StringStorageInterface::getLocations

Same name in other branches
  1. 8.9.x core/modules/locale/src/StringStorageInterface.php \Drupal\locale\StringStorageInterface::getLocations()
  2. 10 core/modules/locale/src/StringStorageInterface.php \Drupal\locale\StringStorageInterface::getLocations()
  3. 11.x core/modules/locale/src/StringStorageInterface.php \Drupal\locale\StringStorageInterface::getLocations()

Loads string location information.

Parameters

array $conditions: (optional) Array with conditions to filter the locations that may be any of the following elements:

  • 'sid', The string identifier.
  • 'type', The location type.
  • 'name', The location name.

Return value

\Drupal\locale\StringInterface[] Array of \Drupal\locale\StringInterface objects matching the conditions.

See also

\Drupal\locale\StringStorageInterface::getStrings()

1 method overrides StringStorageInterface::getLocations()
StringDatabaseStorage::getLocations in core/modules/locale/src/StringDatabaseStorage.php
Loads string location information.

File

core/modules/locale/src/StringStorageInterface.php, line 64

Class

StringStorageInterface
Defines the locale string storage interface.

Namespace

Drupal\locale

Code

public function getLocations(array $conditions = []);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.