You are here

class AuthcacheP13nTestEchoFragmentValidator in Authenticated User Page Caching (Authcache) 7.2

Stub class for fragment request validator.

Hierarchy

Expanded class hierarchy of AuthcacheP13nTestEchoFragmentValidator

File

modules/authcache_p13n/tests/authcache_p13n.stub.inc, line 433
Stub classes for testing.

View source
class AuthcacheP13nTestEchoFragmentValidator implements AuthcacheP13nFragmentValidatorInterface {

  /**
   * {@inheritdoc}
   */
  public function validate($keys) {
    $valid = !isset($keys['invalid']);
    if (!$valid) {
      throw new AuthcacheP13nRequestInvalidInput();
    }
    return $keys;
  }

}

Members