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