You are here

public function TagsHeaderBase::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.

Overrides TagsHeaderInterface::getValue

See also

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

File

src/Plugin/Purge/TagsHeader/TagsHeaderBase.php, line 34

Class

TagsHeaderBase
Base implementation for plugins that add and format a cache tags header.

Namespace

Drupal\purge\Plugin\Purge\TagsHeader

Code

public function getValue(array $tags) {
  return implode(' ', $tags);
}