public function Domain::setCanonical in Domain Access 8
Sets the canonical (registered) hostname for the domain.
Overrides DomainInterface::setCanonical
1 call to Domain::setCanonical()
- Domain::getCanonical in domain/
src/ Entity/ Domain.php - Retrieves the canonical (registered) hostname for the domain.
File
- domain/
src/ Entity/ Domain.php, line 551
Class
- Domain
- Defines the domain entity.
Namespace
Drupal\domain\EntityCode
public function setCanonical($hostname = NULL) {
if (is_null($hostname)) {
$this->canonical = $this
->getHostname();
}
else {
$this->canonical = $hostname;
}
}