public FieldUiRouteEnhancer::applies(Route $route)
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 49
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')); }
Please login to continue.