function akamai_get_class in Akamai 8.2
Same name and namespace in other branches
- 8 akamai.module \akamai_get_class()
- 6.2 akamai.module \akamai_get_class()
- 7 akamai.module \akamai_get_class()
- 7.2 akamai.module \akamai_get_class()
Returns the Akamai Cache Control class. This is abstracted to provide the capability of a no-op or recording class for testing purposes.
2 calls to akamai_get_class()
- AkamaiTestCase::testDirectClear in ./
akamai.test - Tests clear.
- akamai_clear_url in ./
akamai.module - Clear a URL from Akamai. Clears node/id and any url aliases.
File
- ./
akamai.module, line 199 - akamai.module Integration with the Akamai CDN Cache Control Web Service.
Code
function akamai_get_class($params = array()) {
module_load_include('inc', 'akamai', 'akamai.class');
$class = \Drupal::config('akamai.settings')
->get('service_class');
$akamai = new $class($params);
return $akamai;
}