You are here

public function DomainStorageInterface::loadByHostname in Domain Access 8

Loads a domain record by hostname lookup.

Parameters

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

Return value

\Drupal\domain\DomainInterface|null The domain record or NULL.

1 method overrides DomainStorageInterface::loadByHostname()
DomainStorage::loadByHostname in domain/src/DomainStorage.php
Loads a domain record by hostname lookup.

File

domain/src/DomainStorageInterface.php, line 48

Class

DomainStorageInterface
Provides an interface for domain entity storage.

Namespace

Drupal\domain

Code

public function loadByHostname($hostname);