public function FormRouteEnhancer::applies
public FormRouteEnhancer::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/lib/Drupal/Core/Routing/Enhancer/FormRouteEnhancer.php, line 16
Class
- FormRouteEnhancer
- Enhancer to add a wrapping controller for _form routes.
Namespace
Drupal\Core\Routing\EnhancerCode
public function applies(Route $route) { return $route->hasDefault('_form') && !$route->hasDefault('_controller'); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Routing!Enhancer!FormRouteEnhancer.php/function/FormRouteEnhancer::applies/8.1.x