You are here

protected function DomainNegotiator::domainStorage in Domain Access 8

Retrieves the domain storage handler.

Return value

\Drupal\domain\DomainStorageInterface The domain storage handler.

File

domain/src/DomainNegotiator.php, line 228

Class

DomainNegotiator

Namespace

Drupal\domain

Code

protected function domainStorage() {
  if (!$this->domainStorage) {
    $this->domainStorage = $this->entityTypeManager
      ->getStorage('domain');
  }
  return $this->domainStorage;
}