You are here

public function DomainValidatorInterface::validate in Domain Access 8

Validates the hostname for a domain.

Parameters

string $hostname: A hostname to validate.

Return value

array An array of validation errors. An empty array indicates a valid domain.

1 method overrides DomainValidatorInterface::validate()
DomainValidator::validate in domain/src/DomainValidator.php
Validates the hostname for a domain.

File

domain/src/DomainValidatorInterface.php, line 19

Class

DomainValidatorInterface
Supplies validator methods for common domain requests.

Namespace

Drupal\domain

Code

public function validate($hostname);