public function CdnBase::request in Libraries CDN API 8
Make an HTTP Request.
TODO: Do not use drupal_http_request.
Parameters
string $url: The URL.
Overrides CdnBaseInterface::request
2 calls to CdnBase::request()
- 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 109 - Class CdnBase.
Class
- CdnBase
- Class CdnBase.
Namespace
Drupal\libraries_cdnCode
public function request($url) {
return \Drupal::httpClient()
->get($url);
}