constant ResourceVersionRouteEnhancer::CACHE_CONTEXT in JSON:API 8.2
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
- 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';