You are here

public function Domain::getUrl in Domain Access 8

Gets the url for a domain.

Return value

string A URL string for the current request on the requested domain. If the current request is /user the return would be http://example.com/user or http://one.example.com, depending on the current domain context.

Overrides DomainInterface::getUrl

1 call to Domain::getUrl()
Domain::getLink in domain/src/Entity/Domain.php
Returns a URL object for a domain.

File

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

Class

Domain
Defines the domain entity.

Namespace

Drupal\domain\Entity

Code

public function getUrl() {
  if (!isset($this->url)) {
    $this
      ->setUrl();
  }
  return $this->url;
}