You are here

public function RouteEnhancer::applies in Automatic Entity Label 8.3

Same name and namespace in other branches
  1. 8 src/Routing/RouteEnhancer.php \Drupal\auto_entitylabel\Routing\RouteEnhancer::applies()
  2. 8.2 src/Routing/RouteEnhancer.php \Drupal\auto_entitylabel\Routing\RouteEnhancer::applies()
1 call to RouteEnhancer::applies()
RouteEnhancer::enhance in src/Routing/RouteEnhancer.php
Update the defaults based on its own data and the request.

File

src/Routing/RouteEnhancer.php, line 57

Class

RouteEnhancer
RouteEnhancer Class.

Namespace

Drupal\auto_entitylabel\Routing

Code

public function applies(Route $route) {
  return $route
    ->hasOption('auto_label');
}