function FormRouteEnhancer::applies
Same name in other branches
- 9 core/lib/Drupal/Core/Routing/Enhancer/FormRouteEnhancer.php \Drupal\Core\Routing\Enhancer\FormRouteEnhancer::applies()
- 8.9.x core/lib/Drupal/Core/Routing/Enhancer/FormRouteEnhancer.php \Drupal\Core\Routing\Enhancer\FormRouteEnhancer::applies()
- 11.x core/lib/Drupal/Core/Routing/Enhancer/FormRouteEnhancer.php \Drupal\Core\Routing\Enhancer\FormRouteEnhancer::applies()
Returns whether the enhancer runs on the current route.
Parameters
\Symfony\Component\Routing\Route $route: The current route.
Return value
bool
1 call to FormRouteEnhancer::applies()
- FormRouteEnhancer::enhance in core/
lib/ Drupal/ Core/ Routing/ Enhancer/ FormRouteEnhancer.php - Updates the defaults for a route definition based on the request.
File
-
core/
lib/ Drupal/ Core/ Routing/ Enhancer/ FormRouteEnhancer.php, line 23
Class
- FormRouteEnhancer
- Enhancer to add a wrapping controller for _form routes.
Namespace
Drupal\Core\Routing\EnhancerCode
protected function applies(Route $route) {
return $route->hasDefault('_form') && !$route->hasDefault('_controller');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.