You are here

public function TagsHeaderInterface::getHeaderName in Purge 8.3

Fetch the HTTP response header name.

@warning In RFC #6648 the use of 'X-' as header prefixes has been deprecated for "application protocols", this naturally includes Drupal. Therefore if this is possible, consider header names without this prefix.

Return value

string Name of the HTTP header to send out on responses.

Throws

\LogicException Thrown when the returned value isn't a string.

See also

\Drupal\purge\Annotation\PurgeTagsHeader::$header_name

http://tools.ietf.org/html/rfc6648

1 method overrides TagsHeaderInterface::getHeaderName()
TagsHeaderBase::getHeaderName in src/Plugin/Purge/TagsHeader/TagsHeaderBase.php
Fetch the HTTP response header name.

File

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

Class

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

Namespace

Drupal\purge\Plugin\Purge\TagsHeader

Code

public function getHeaderName();