protected function AuthcacheP13nDefaultRequestHandler::encode in Authenticated User Page Caching (Authcache) 7.2
Encode the result returned by ::build().
1 call to AuthcacheP13nDefaultRequestHandler::encode()
- AuthcacheP13nDefaultRequestHandler::handle in modules/
authcache_p13n/ includes/ AuthcacheP13nDefaultRequestHandler.inc - Render and print the response according to the given parameters.
File
- modules/
authcache_p13n/ includes/ AuthcacheP13nDefaultRequestHandler.inc, line 137 - Defines default request handler class
Class
- AuthcacheP13nDefaultRequestHandler
- Default request handler class for personalized fragments.
Code
protected function encode($result) {
$this->coreService
->drupalAddHttpHeader('Content-Type', $this->contentEncoder
->contentType());
return $this->contentEncoder
->encode($result);
}