public function DomainAliasValidatorInterface::validate in Domain Access 8
Validates the rules for a domain alias.
Parameters
\Drupal\domain_alias\DomainAliasInterface $alias: The domain alias to validate.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup|null The validation error message, if any.
1 method overrides DomainAliasValidatorInterface::validate()
- DomainAliasValidator::validate in domain_alias/
src/ DomainAliasValidator.php - Validates the rules for a domain alias.
File
- domain_alias/
src/ DomainAliasValidatorInterface.php, line 19
Class
- DomainAliasValidatorInterface
- Supplies validator methods for common domain requests.
Namespace
Drupal\domain_aliasCode
public function validate(DomainAliasInterface $alias);