You are here

public function DomainInterface::getScheme in Domain Access 8

Returns the active scheme for a domain record.

This method is to be used when generating URLs.

Parameters

bool $add_suffix: Tells the method to return :// after the string.

Return value

string Returns a valid scheme (http or https), with or without the suffix.

1 method overrides DomainInterface::getScheme()
Domain::getScheme in domain/src/Entity/Domain.php
Returns the active scheme for a domain record.

File

domain/src/DomainInterface.php, line 96

Class

DomainInterface
Provides an interface defining a domain entity.

Namespace

Drupal\domain

Code

public function getScheme($add_suffix = TRUE);