You are here

public function CdnBase::getScheme in Libraries CDN API 8

Get the default scheme.

Parameters

string $default: The default scheme is none is set.

Overrides CdnBaseInterface::getScheme

2 calls to CdnBase::getScheme()
CdnBase::getLocalCopy in src/CdnBase.php
Copy a library from the CDN to the local filesystem.
CdnBase::query in src/CdnBase.php
Request wrapper for querying a CDN.

File

src/CdnBase.php, line 102
Class CdnBase.

Class

CdnBase
Class CdnBase.

Namespace

Drupal\libraries_cdn

Code

public function getScheme($default = 'http') {
  return empty($this->configuration['scheme']) ? $default : $this->configuration['scheme'];
}