You are here

public function MessageCatalogue::get in Plug 7

@api

Overrides MessageCatalogueInterface::get

File

lib/Symfony/translation/MessageCatalogue.php, line 121

Class

MessageCatalogue
MessageCatalogue.

Namespace

Symfony\Component\Translation

Code

public function get($id, $domain = 'messages') {
  if (isset($this->messages[$domain][$id])) {
    return $this->messages[$domain][$id];
  }
  if (null !== $this->fallbackCatalogue) {
    return $this->fallbackCatalogue
      ->get($id, $domain);
  }
  return $id;
}