You are here

AuthcacheP13nHTMLContent.inc in Authenticated User Page Caching (Authcache) 7.2

Defines content encoder for HTML.

File

modules/authcache_p13n/includes/AuthcacheP13nHTMLContent.inc
View source
<?php

/**
 * @file
 * Defines content encoder for HTML.
 */

/**
 * HTML content encoder.
 */
class AuthcacheP13nHTMLContent implements AuthcacheP13nContentEncoderInterface {

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

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

}

Classes

Namesort descending Description
AuthcacheP13nHTMLContent HTML content encoder.