You are here

public function FieldUiRouteEnhancer::applies in Scheduled Updates 8

Declares if the route enhancer applies to the given route.

Parameters

\Symfony\Component\Routing\Route $route: The route to consider attaching to.

Return value

bool TRUE if the check applies to the passed route, False otherwise.

Overrides RouteEnhancerInterface::applies

1 call to FieldUiRouteEnhancer::applies()
FieldUiRouteEnhancer::enhance in src/Routing/FieldUiRouteEnhancer.php
Update the defaults based on its own data and the request.

File

src/Routing/FieldUiRouteEnhancer.php, line 58
Contains \Drupal\scheduled_updates\Routing\FieldUiRouteEnhancer.

Class

FieldUiRouteEnhancer
Enhances Field UI routes by adding proper information about the bundle name.

Namespace

Drupal\scheduled_updates\Routing

Code

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