You are here

function domain_uri in Domain Access 8

Entity URI callback.

Parameters

\Drupal\domain\DomainInterface $domain: The Domain object.

Return value

\Drupal\Core\Url The Domain URL.

File

domain/domain.module, line 31
Defines a Domain concept for use with Drupal.

Code

function domain_uri(DomainInterface $domain) {
  return Url::fromUri($domain
    ->getPath(), [
    'absolute' => TRUE,
  ]);
}