You are here

public function AbstractOperation::getMessages in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/translation/Catalogue/AbstractOperation.php \Symfony\Component\Translation\Catalogue\AbstractOperation::getMessages()

Returns all valid messages after operation.

Parameters

string $domain:

Return value

array

Overrides OperationInterface::getMessages

File

vendor/symfony/translation/Catalogue/AbstractOperation.php, line 83

Class

AbstractOperation
Base catalogues binary operation class.

Namespace

Symfony\Component\Translation\Catalogue

Code

public function getMessages($domain) {
  if (!in_array($domain, $this
    ->getDomains())) {
    throw new \InvalidArgumentException(sprintf('Invalid domain: %s.', $domain));
  }
  if (!isset($this->messages[$domain]['all'])) {
    $this
      ->processDomain($domain);
  }
  return $this->messages[$domain]['all'];
}