You are here

class AuthcacheP13nHTMLContent in Authenticated User Page Caching (Authcache) 7.2

HTML content encoder.

Hierarchy

Expanded class hierarchy of AuthcacheP13nHTMLContent

2 string references to 'AuthcacheP13nHTMLContent'
AuthcacheP13nTestRequestBuilder::testRequestResourcesNullFragments in modules/authcache_p13n/tests/authcache_p13n.request-builder.test
Cover authcache_p13n_request_resources().
authcache_p13n_authcache_p13n_request in modules/authcache_p13n/authcache_p13n.module
Implements hook_authcache_p13n_request().

File

modules/authcache_p13n/includes/AuthcacheP13nHTMLContent.inc, line 10
Defines content encoder for HTML.

View source
class AuthcacheP13nHTMLContent implements AuthcacheP13nContentEncoderInterface {

  /**
   * {@inheritdoc}
   */
  public function contentType() {
    return 'text/html; charset=UTF-8';
  }

  /**
   * {@inheritdoc}
   */
  public function encode($result) {
    return (string) $result;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AuthcacheP13nHTMLContent::contentType public function Return an appropriate internet media type string. Overrides AuthcacheP13nContentEncoderInterface::contentType
AuthcacheP13nHTMLContent::encode public function Serialize a result produced by AuthcacheP13nContentBuilder::build(). Overrides AuthcacheP13nContentEncoderInterface::encode