You are here

public function Domain::setHostname in Domain Access 8

Sets the hostname of the domain.

Parameters

string $hostname: The hostname value to set, in the format example.com.

Overrides DomainInterface::setHostname

4 calls to Domain::setHostname()
Domain::disable in domain/src/Entity/Domain.php
Disables the configuration entity.
Domain::enable in domain/src/Entity/Domain.php
Enables the configuration entity.
Domain::saveDefault in domain/src/Entity/Domain.php
Makes a domain record the default.
Domain::saveProperty in domain/src/Entity/Domain.php
Saves a specific domain attribute.

File

domain/src/Entity/Domain.php, line 505

Class

Domain
Defines the domain entity.

Namespace

Drupal\domain\Entity

Code

public function setHostname($hostname) {
  $this->hostname = $hostname;
}