You are here

public function DomainStorageInterface::prepareHostname in Domain Access 8

Removes www. prefix from a hostname, if set.

Parameters

string $hostname: A hostname.

Return value

string The cleaned hostname.

1 method overrides DomainStorageInterface::prepareHostname()
DomainStorage::prepareHostname in domain/src/DomainStorage.php
Removes www. prefix from a hostname, if set.

File

domain/src/DomainStorageInterface.php, line 90

Class

DomainStorageInterface
Provides an interface for domain entity storage.

Namespace

Drupal\domain

Code

public function prepareHostname($hostname);