You are here

constant ResourceVersionRouteEnhancer::CACHE_CONTEXT in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/jsonapi/src/Revisions/ResourceVersionRouteEnhancer.php \Drupal\jsonapi\Revisions\ResourceVersionRouteEnhancer::CACHE_CONTEXT
  2. 9 core/modules/jsonapi/src/Revisions/ResourceVersionRouteEnhancer.php \Drupal\jsonapi\Revisions\ResourceVersionRouteEnhancer::CACHE_CONTEXT

The cache context by which vary the loaded entity revision.

@todo When D8 requires PHP >=5.6, convert to expression using the RESOURCE_VERSION_QUERY_PARAMETER constant.

File

core/modules/jsonapi/src/Revisions/ResourceVersionRouteEnhancer.php, line 54

Class

ResourceVersionRouteEnhancer
Loads an appropriate revision for the requested resource version.

Namespace

Drupal\jsonapi\Revisions

Code

const CACHE_CONTEXT = 'url.query_args:resourceVersion';