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\TypeCode
public function setScheme($default = 'http') {
$this->configuration['scheme'] = trim(substr($default, 0, 5));
}