You are here

public function AcquiaPlatformCdnTagsHeader::isEnabled in Acquia Purge 8

Determine if this header should be added to the response.

Return value

bool TRUE when the header should be added to responses, FALSE when not.

Overrides TagsHeaderBase::isEnabled

File

src/Plugin/Purge/TagsHeader/AcquiaPlatformCdnTagsHeader.php, line 94

Class

AcquiaPlatformCdnTagsHeader
Exports a tags header for the current Platform CDN backend.

Namespace

Drupal\acquia_purge\Plugin\Purge\TagsHeader

Code

public function isEnabled() {
  if ($this->backendClass) {
    return TRUE;
  }
  return FALSE;
}