You are here

class AuthcacheP13nTestEchoSettingAccess in Authenticated User Page Caching (Authcache) 7.2

Stub class for setting access checker

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
AuthcacheP13nTestEchoSettingAccess::check public function Check whether the user has access to the given setting. Overrides AuthcacheP13nSettingAccessInterface::check