public function AkamaiClientManager::getDefaultClientVersion in Akamai 8.3
Gets the default Akamai client version.
Return value
string|bool Version of the default client, or FALSE on error.
File
- src/
AkamaiClientManager.php, line 54
Class
- AkamaiClientManager
- Manages Akamai Client version plugins.
Namespace
Drupal\akamaiCode
public function getDefaultClientVersion() {
$client_version = $this->configFactory
->get('akamai.settings')
->get('version');
$clients = $this
->getAvailableVersions();
if (!isset($clients[$client_version]) || !class_exists($clients[$client_version]['class'])) {
// The selected client isn't available so return the first one found. If
// none are available this will return FALSE.
reset($clients);
$client_version = key($clients);
}
return $client_version;
}