You are here

public function CDNBase::getScheme in Libraries CDN API 7

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/Type/CDNBase.php
Copy a library from the CDN to the local filesystem.
CDNBase::query in src/Type/CDNBase.php
Request wrapper for querying a CDN.

File

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

Class

CDNBase
Class CDNBase.

Namespace

Drupal\libraries_cdn\Type

Code

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