You are here

public function Domain::isDefault in Domain Access 8

Detects if the current domain is the default domain.

Return value

bool TRUE if domain set as default, FALSE otherwise.

Overrides DomainInterface::isDefault

2 calls to Domain::isDefault()
Domain::disable in domain/src/Entity/Domain.php
Disables the configuration entity.
Domain::saveDefault in domain/src/Entity/Domain.php
Makes a domain record the default.

File

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

Class

Domain
Defines the domain entity.

Namespace

Drupal\domain\Entity

Code

public function isDefault() {
  return (bool) $this->is_default;
}