You are here

public function FieldUiRouteEnhancer::applies in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/field_ui/src/Routing/FieldUiRouteEnhancer.php \Drupal\field_ui\Routing\FieldUiRouteEnhancer::applies()

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

File

core/modules/field_ui/src/Routing/FieldUiRouteEnhancer.php, line 54
Contains \Drupal\field_ui\Routing\FieldUiRouteEnhancer.

Class

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

Namespace

Drupal\field_ui\Routing

Code

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