public static function BackendFactory::getClassFromConfig in Acquia Purge 8
Get the backend class from the Platform CDN configuration array.
Parameters
array $config: Acquia Platform CDN configuration settings.
Return value
string|null Class providing the Platform CDN purger backend, or NULL if unconfigured.
3 calls to BackendFactory::getClassFromConfig()
- AcquiaPlatformCdnCheck::run in src/
Plugin/ Purge/ DiagnosticCheck/ AcquiaPlatformCdnCheck.php - Perform the check and determine the severity level.
- BackendFactory::get in src/
AcquiaPlatformCdn/ BackendFactory.php - Get a instantiated Platform CDN purger backend.
- BackendFactory::getClass in src/
AcquiaPlatformCdn/ BackendFactory.php - Get the backend class based on platform configuration.
File
- src/
AcquiaPlatformCdn/ BackendFactory.php, line 103
Class
- BackendFactory
- Provides a backend for the Platform CDN purger.
Namespace
Drupal\acquia_purge\AcquiaPlatformCdnCode
public static function getClassFromConfig(array $config) {
if (isset(self::$backendClasses[$config['vendor']])) {
return self::$backendClasses[$config['vendor']];
}
return NULL;
}