You are here

public function AuthcacheP13nTestFragmentStub::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 348
Stub classes for testing.

Class

AuthcacheP13nTestFragmentStub
Stub fragment.

Code

public function render($key, $subject, $context) {
  return $this->observer
    ->record($this, __FUNCTION__, func_get_args());
}