You are here

class AuthcacheP13nTestEchoSettingValidator in Authenticated User Page Caching (Authcache) 7.2

Stub class for setting request validator.

Hierarchy

Expanded class hierarchy of AuthcacheP13nTestEchoSettingValidator

File

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

View source
class AuthcacheP13nTestEchoSettingValidator implements AuthcacheP13nSettingValidatorInterface {

  /**
   * {@inheritdoc}
   */
  public function validate($params) {
    $valid = !isset($params['valid']) || $params['valid'];
    if (!$valid) {
      throw new AuthcacheP13nRequestInvalidInput();
    }
    return array(
      'validated' => TRUE,
    ) + $params;
  }

}

Members