You are here

public function DomainAliasStorageInterface::loadByHostname in Domain Access 8

Loads a domain alias record by hostname lookup.

This method will return the best match to a request.

Parameters

string $hostname: A hostname string, in the format example.com.

Return value

\Drupal\domain_alias\DomainAliasInterface|null The best match alias record for the provided hostname.

1 method overrides DomainAliasStorageInterface::loadByHostname()
DomainAliasStorage::loadByHostname in domain_alias/src/DomainAliasStorage.php
Loads a domain alias record by hostname lookup.

File

domain_alias/src/DomainAliasStorageInterface.php, line 24

Class

DomainAliasStorageInterface
Supplies storage methods for common domain_alias requests.

Namespace

Drupal\domain_alias

Code

public function loadByHostname($hostname);