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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AuthcacheP13nTestEchoFragmentValidator:: |
public | function |
Validate the given list of keys. Overrides AuthcacheP13nFragmentValidatorInterface:: |