You are here

public function DomainValidator::getRequiredFields in Domain Access 8

Returns the properties required to create a domain record.

Return value

array Array of property names.

Overrides DomainValidatorInterface::getRequiredFields

File

domain/src/DomainValidator.php, line 148

Class

DomainValidator
Provides validation of domain strings against RFC standards for hostnames.

Namespace

Drupal\domain

Code

public function getRequiredFields() {
  return [
    'hostname',
    'name',
    'scheme',
    'status',
    'weight',
  ];
}