You are here

public function TagsHeaderInterface::getValue in Purge 8.3

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.

See also

\Drupal\Core\Cache\CacheableDependencyInterface::getCacheTags()

1 method overrides TagsHeaderInterface::getValue()
TagsHeaderBase::getValue in src/Plugin/Purge/TagsHeader/TagsHeaderBase.php
Format the given cache tags for the header value representation.

File

src/Plugin/Purge/TagsHeader/TagsHeaderInterface.php, line 46

Class

TagsHeaderInterface
Describes a plugin that adds and formats a cache tags header on responses.

Namespace

Drupal\purge\Plugin\Purge\TagsHeader

Code

public function getValue(array $tags);