You are here

public function DomainStorageInterface::createMachineName in Domain Access 8

Creates a machine-name string from the hostname.

This string is the primary key of the entity.

Parameters

string $hostname: The hostname of the domain record. If empty, the current request will be used.

Return value

string A string containing A-Z, a-z, 0-9, and _ characters.

1 method overrides DomainStorageInterface::createMachineName()
DomainStorage::createMachineName in domain/src/DomainStorage.php
Creates a machine-name string from the hostname.

File

domain/src/DomainStorageInterface.php, line 112

Class

DomainStorageInterface
Provides an interface for domain entity storage.

Namespace

Drupal\domain

Code

public function createMachineName($hostname = NULL);