Implements Drupal\locale\StringInterface::getLocation().
Overrides StringInterface::getLocations
public function getLocations($check_only = FALSE) {
if (!isset($this->locations) && !$check_only) {
$this->locations = array();
foreach ($this
->getStorage()
->getLocations(array(
'sid' => $this
->getId(),
)) as $location) {
$this->locations[$location->type][$location->name] = $location->lid;
}
}
return isset($this->locations) ? $this->locations : array();
}