You are here

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

Split up the field specifier string.

Overrides AuthcacheP13nFragmentValidatorInterface::validate

File

modules/authcache_field/includes/AuthcacheFieldFragment.inc, line 33
Defines fragment for fields.

Class

AuthcacheFieldFragment
Fragment handler for fields.

Code

public function validate($field_specifiers) {
  $result = array();
  foreach ($field_specifiers as $key) {
    list($entity_id, $view_mode, $language) = explode(':', $key);
    $result[$key] = array(
      $entity_id,
      $view_mode,
      $language,
    );
  }
  return $result;
}