You are here

public function AuthcacheP13nFragmentValidatorInterface::validate in Authenticated User Page Caching (Authcache) 7.2

Validate the given list of keys.

Throw AuthcacheP13nRequestInvalidInput to abort a request.

Note: At the time this method is called, the bootstrap phase is not guaranteed to be greater than DRUPAL_BOOTSTRAP_SESSION. Therefore avoid calling functions which will trigger hook invocations like e.g. entity_load.

Parameters

array $keys: An associative array of key-value pairs (key=value) representing the keys of the fragment(s) to load.

Return value

array An associative array of key-value pairs where keys correspond to the input keys and the values to subjects to be used in the renderer.

Throws

AuthcacheP13nRequestInvalidInput

3 methods override AuthcacheP13nFragmentValidatorInterface::validate()
AuthcacheFieldFragment::validate in modules/authcache_field/includes/AuthcacheFieldFragment.inc
Split up the field specifier string.
AuthcacheP13nTestEchoFragmentValidator::validate in modules/authcache_p13n/tests/authcache_p13n.stub.inc
Validate the given list of keys.
AuthcacheP13nTestFragmentValidatorStub::validate in modules/authcache_p13n/tests/authcache_p13n.stub.inc
Validate the given list of keys.

File

modules/authcache_p13n/includes/AuthcacheP13nFragmentValidatorInterface.inc, line 31
Defines authcache personalized fragment validator.

Class

AuthcacheP13nFragmentValidatorInterface
Interface for personalization fragment validators.

Code

public function validate($keys);