You are here

public function MessageCatalogue::has in Plug 7

@api

Overrides MessageCatalogueInterface::has

File

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

Class

MessageCatalogue
MessageCatalogue.

Namespace

Symfony\Component\Translation

Code

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