You are here

public function AbstractOperation::getDomains 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::getDomains()

Returns domains affected by operation.

Return value

array

Overrides OperationInterface::getDomains

4 calls to AbstractOperation::getDomains()
AbstractOperation::getMessages in vendor/symfony/translation/Catalogue/AbstractOperation.php
Returns all valid messages after operation.
AbstractOperation::getNewMessages in vendor/symfony/translation/Catalogue/AbstractOperation.php
Returns new messages after operation.
AbstractOperation::getObsoleteMessages in vendor/symfony/translation/Catalogue/AbstractOperation.php
Returns obsolete messages after operation.
AbstractOperation::getResult in vendor/symfony/translation/Catalogue/AbstractOperation.php
Returns resulting catalogue.

File

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

Class

AbstractOperation
Base catalogues binary operation class.

Namespace

Symfony\Component\Translation\Catalogue

Code

public function getDomains() {
  if (null === $this->domains) {
    $this->domains = array_values(array_unique(array_merge($this->source
      ->getDomains(), $this->target
      ->getDomains())));
  }
  return $this->domains;
}