You are here

class AuthcacheP13nTestEchoFragmentAccess in Authenticated User Page Caching (Authcache) 7.2

Stub class for fragment access checker

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
AuthcacheP13nTestEchoFragmentAccess::check public function Check whether the user has access to the given fragment. Overrides AuthcacheP13nFragmentAccessInterface::check