You are here

public function AbstractOperation::getObsoleteMessages in Plug 7

Returns obsolete messages after operation.

Parameters

string $domain:

Return value

array

Overrides OperationInterface::getObsoleteMessages

File

lib/Symfony/translation/Catalogue/AbstractOperation.php, line 115

Class

AbstractOperation
Base catalogues binary operation class.

Namespace

Symfony\Component\Translation\Catalogue

Code

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