You are here

public static function BackendFactory::getClass in Acquia Purge 8

Get the backend class based on platform configuration.

Parameters

\Drupal\acquia_purge\AcquiaCloud\PlatformInfoInterface $platforminfo: Information object interfacing with the Acquia platform.

Return value

string|null Class providing the Platform CDN purger backend, or NULL if unconfigured.

1 call to BackendFactory::getClass()
AcquiaPlatformCdnTagsHeader::__construct in src/Plugin/Purge/TagsHeader/AcquiaPlatformCdnTagsHeader.php
Constructs a AcquiaPlatformCdnTagsHeader object.

File

src/AcquiaPlatformCdn/BackendFactory.php, line 87

Class

BackendFactory
Provides a backend for the Platform CDN purger.

Namespace

Drupal\acquia_purge\AcquiaPlatformCdn

Code

public static function getClass(PlatformInfoInterface $platforminfo) {
  if ($config = self::getConfig($platforminfo)) {
    return self::getClassFromConfig($config);
  }
  return NULL;
}