public function AuthcacheP13nJSONContent::encode in Authenticated User Page Caching (Authcache) 7.2
Serialize a result produced by AuthcacheP13nContentBuilder::build().
Overrides AuthcacheP13nContentEncoderInterface::encode
File
- modules/
authcache_p13n/ includes/ AuthcacheP13nJSONContent.inc, line 21 - Define content encoder for JSON.
Class
- AuthcacheP13nJSONContent
- JSON content encoder.
Code
public function encode($result) {
return json_encode($result);
}