class AuthcacheP13nTestEchoFragmentAccess in Authenticated User Page Caching (Authcache) 7.2
Stub class for fragment access checker
Hierarchy
- class \AuthcacheP13nTestEchoFragmentAccess implements AuthcacheP13nFragmentAccessInterface
Expanded class hierarchy of AuthcacheP13nTestEchoFragmentAccess
File
- modules/
authcache_p13n/ tests/ authcache_p13n.stub.inc, line 469 - Stub classes for testing.
View source
class AuthcacheP13nTestEchoFragmentAccess implements AuthcacheP13nFragmentAccessInterface {
/**
* {@inheritdoc}
*/
public function check($account, $key, $subject, $context) {
return $key !== 'account' || $subject == $account;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AuthcacheP13nTestEchoFragmentAccess:: |
public | function |
Check whether the user has access to the given fragment. Overrides AuthcacheP13nFragmentAccessInterface:: |