public static function BackendFactory::getConfig in Acquia Purge 8
Get the CDN configuration array.
Parameters
\Drupal\acquia_purge\AcquiaCloud\PlatformInfoInterface $platforminfo: Information object interfacing with the Acquia platform.
Return value
array|null NULL when unconfigured, or associative array with arbitrary settings coming from: \Drupal\acquia_purge\AcquiaCloud\PlatformInfoInterface::getPlatformCdnConfiguration
3 calls to BackendFactory::getConfig()
- 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 69
Class
- BackendFactory
- Provides a backend for the Platform CDN purger.
Namespace
Drupal\acquia_purge\AcquiaPlatformCdnCode
public static function getConfig(PlatformInfoInterface $platforminfo) {
try {
return $platforminfo
->getPlatformCdnConfiguration();
} catch (\RuntimeException $e) {
return NULL;
}
}