W3cubDocs

/Drupal 8

class EntityRevisionRouteEnhancer

Adds _entity_revision to the request attributes, if possible.

Hierarchy

File

core/lib/Drupal/Core/Routing/Enhancer/EntityRevisionRouteEnhancer.php, line 12

Namespace

Drupal\Core\Routing\Enhancer

Members

Name Modifiers Type Description
EntityRevisionRouteEnhancer::applies public function Declares if the route enhancer applies to the given route. Overrides RouteEnhancerInterface::applies
EntityRevisionRouteEnhancer::enhance public function Update the defaults based on its own data and the request. Overrides RouteEnhancerInterface::enhance

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Routing!Enhancer!EntityRevisionRouteEnhancer.php/class/EntityRevisionRouteEnhancer/8.1.x