public function RouteEnhancerInterface::enhance in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony-cmf/routing/Enhancer/RouteEnhancerInterface.php \Symfony\Cmf\Component\Routing\Enhancer\RouteEnhancerInterface::enhance()
Update the defaults based on its own data and the request.
Parameters
array $defaults the getRouteDefaults array.:
Request $request the Request instance.:
Return value
array the modified defaults. Each enhancer MUST return the $defaults but may add or remove values.
9 methods override RouteEnhancerInterface::enhance()
- EntityRouteEnhancer::enhance in core/
lib/ Drupal/ Core/ Entity/ Enhancer/ EntityRouteEnhancer.php - Update the defaults based on its own data and the request.
- FieldByClassEnhancer::enhance in vendor/
symfony-cmf/ routing/ Enhancer/ FieldByClassEnhancer.php - If the source field is instance of one of the entries in the map, target is set to the value of that map entry.
- FieldMapEnhancer::enhance in vendor/
symfony-cmf/ routing/ Enhancer/ FieldMapEnhancer.php - If the target field is not set but the source field is, map the field
- FieldPresenceEnhancer::enhance in vendor/
symfony-cmf/ routing/ Enhancer/ FieldPresenceEnhancer.php - Update the defaults based on its own data and the request.
- FieldUiRouteEnhancer::enhance in core/
modules/ field_ui/ src/ Routing/ FieldUiRouteEnhancer.php - Update the defaults based on its own data and the request.
File
- vendor/
symfony-cmf/ routing/ Enhancer/ RouteEnhancerInterface.php, line 36
Class
- RouteEnhancerInterface
- A route enhancer can change the values in the route data arrays
Namespace
Symfony\Cmf\Component\Routing\EnhancerCode
public function enhance(array $defaults, Request $request);