You are here

public function AuthcacheP13nTestEchoPartial::render in Authenticated User Page Caching (Authcache) 7.2

Render and return fragment.

Parameters

string $key: The key for the fragment to be rendered.

var $subject: The result of the loader function for the given key. If no AuthcacheP13nFragmentLoader is associated with this fragment, subject is equal to key.

array $context: Additional run-time per-request context (key-value pairs).

Return value

string Return a string representing the HTML fragment

Overrides AuthcacheP13nFragmentInterface::render

File

modules/authcache_p13n/tests/authcache_p13n.stub.inc, line 485
Stub classes for testing.

Class

AuthcacheP13nTestEchoPartial
Stub partial.

Code

public function render($key, $subject, $context) {
  return array(
    'key' => $key,
    'subject' => $subject,
  );
}