class AuthcacheP13nTestEchoFragmentLoader in Authenticated User Page Caching (Authcache) 7.2
Stub class for fragment request loader.
Hierarchy
- class \AuthcacheP13nTestEchoFragmentLoader implements AuthcacheP13nFragmentLoaderInterface
Expanded class hierarchy of AuthcacheP13nTestEchoFragmentLoader
File
- modules/
authcache_p13n/ tests/ authcache_p13n.stub.inc, line 450 - Stub classes for testing.
View source
class AuthcacheP13nTestEchoFragmentLoader implements AuthcacheP13nFragmentLoaderInterface {
/**
* {@inheritdoc}
*/
public function load($keys, $context) {
if (isset($keys['load'])) {
$keys['load'] = 'loaded';
}
if (isset($keys['load missing'])) {
throw new AuthcacheP13nRequestNotFound();
}
return $keys;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AuthcacheP13nTestEchoFragmentLoader:: |
public | function |
Load the objects designated by the given list of keys. Overrides AuthcacheP13nFragmentLoaderInterface:: |