You are here

public function CDNBase::setScheme in Libraries CDN API 7

Set default scheme for an url.

Parameters

string $default: The scheme.

Overrides CDNBaseInterface::setScheme

File

src/Type/CDNBase.php, line 96
Class CDNBase.

Class

CDNBase
Class CDNBase.

Namespace

Drupal\libraries_cdn\Type

Code

public function setScheme($default = 'http') {
  $this->configuration['scheme'] = trim(substr($default, 0, 5));
}