ResourceVersionRouteEnhancer::CACHE_CONTEXT
Same name in other branches
- 8.9.x core/modules/jsonapi/src/Revisions/ResourceVersionRouteEnhancer.php \Drupal\jsonapi\Revisions\ResourceVersionRouteEnhancer::CACHE_CONTEXT
- 10 core/modules/jsonapi/src/Revisions/ResourceVersionRouteEnhancer.php \Drupal\jsonapi\Revisions\ResourceVersionRouteEnhancer::CACHE_CONTEXT
- 11.x 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\RevisionsCode
const CACHE_CONTEXT = 'url.query_args:resourceVersion';
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.