You are here

public function Domain::isHttps in Domain Access 8

Detects if the domain uses https for links.

Return value

bool TRUE if domain protocol is HTTPS, FALSE otherwise.

Overrides DomainInterface::isHttps

1 call to Domain::isHttps()
Domain::getLink in domain/src/Entity/Domain.php
Returns a URL object for a domain.

File

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

Class

Domain
Defines the domain entity.

Namespace

Drupal\domain\Entity

Code

public function isHttps() {
  return (bool) ($this
    ->getScheme(FALSE) == 'https');
}