class EntityRevisionRouteEnhancer implements EnhancerInterface (View source)

Adds _entity_revision to the request attributes, if possible.

Methods

bool
applies(Route $route)

Returns whether the enhancer runs on the current route.

enhance(array $defaults, Request $request)

{@inheritdoc}

Details

protected bool applies(Route $route)

Returns whether the enhancer runs on the current route.

Parameters

Route $route

The current route.

Return Value

bool

enhance(array $defaults, Request $request)

{@inheritdoc}

Parameters

array $defaults
Request $request