You are here

public function AuthcacheP13nTestContentBuilderStub::build in Authenticated User Page Caching (Authcache) 7.2

Build and return the content defined by the input parameters.

When no appropriate content is present, implementations should throw an AuthcacheP13nRequsetNotFound exception.

Parameters

array $input: The GET parameters in key-value form

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

Return value

array|string The built content suitable for passing to the content encoder.

Throws

AuthcacheP13nRequestNotFound

Overrides AuthcacheP13nContentBuilderInterface::build

File

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

Class

AuthcacheP13nTestContentBuilderStub
Stub class for content builder.

Code

public function build($input, $context) {
  return $this->observer
    ->record($this, __FUNCTION__, func_get_args());
}