You are here

public function Domain::getCanonical in Domain Access 8

Retrieves the canonical (registered) hostname for the domain.

Return value

string A hostname string.

Overrides DomainInterface::getCanonical

4 calls to Domain::getCanonical()
Domain::disable in domain/src/Entity/Domain.php
Disables the configuration entity.
Domain::enable in domain/src/Entity/Domain.php
Enables the configuration entity.
Domain::saveDefault in domain/src/Entity/Domain.php
Makes a domain record the default.
Domain::saveProperty in domain/src/Entity/Domain.php
Saves a specific domain attribute.

File

domain/src/Entity/Domain.php, line 563

Class

Domain
Defines the domain entity.

Namespace

Drupal\domain\Entity

Code

public function getCanonical() {
  if (empty($this->canonical)) {
    $this
      ->setCanonical();
  }
  return $this->canonical;
}