You are here

public function MessageCatalogue::all in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/translation/MessageCatalogue.php \Symfony\Component\Translation\MessageCatalogue::all()

Gets the messages within a given domain.

If $domain is null, it returns all messages.

Parameters

string $domain The domain name:

Return value

array An array of messages

Overrides MessageCatalogueInterface::all

File

vendor/symfony/translation/MessageCatalogue.php, line 61

Class

MessageCatalogue
MessageCatalogue.

Namespace

Symfony\Component\Translation

Code

public function all($domain = null) {
  if (null === $domain) {
    return $this->messages;
  }
  return isset($this->messages[$domain]) ? $this->messages[$domain] : array();
}