public function AcquiaPlatformCdnTagsHeader::getValue in Acquia Purge 8
Format the given cache tags for the header value representation.
Parameters
string[] $tags: A set of cache tags.
Return value
string String representing the given headers.
Throws
\LogicException Thrown when the returned value isn't a string.
Overrides TagsHeaderBase::getValue
See also
\Drupal\Core\Cache\CacheableDependencyInterface::getCacheTags()
File
- src/
Plugin/ Purge/ TagsHeader/ AcquiaPlatformCdnTagsHeader.php, line 84
Class
- AcquiaPlatformCdnTagsHeader
- Exports a tags header for the current Platform CDN backend.
Namespace
Drupal\acquia_purge\Plugin\Purge\TagsHeaderCode
public function getValue(array $tags) {
if ($this->backendClass) {
return $this->backendClass::tagsHeaderValue($tags);
}
return 'n/a';
}