public FormRouteEnhancer::enhance(array $defaults, Request $request)
Update the defaults based on its own data and the request.
array $defaults the getRouteDefaults array.:
Request $request the Request instance.:
array the modified defaults. Each enhancer MUST return the $defaults but may add or remove values.
Overrides RouteEnhancerInterface::enhance
public function enhance(array $defaults, Request $request) { $defaults['_controller'] = 'controller.form:getContentResult'; return $defaults; }
© 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::enhance/8.1.x