protected EntityRouteEnhancer::enhanceEntityForm(array $defaults, Request $request)
Update defaults for entity forms.
Parameters
array $defaults: The defaults to modify.
\Symfony\Component\HttpFoundation\Request $request: The Request instance.
Return value
array The modified defaults.
File
- core/lib/Drupal/Core/Entity/Enhancer/EntityRouteEnhancer.php, line 55
Class
- EntityRouteEnhancer
- Enhances an entity form route with the appropriate controller.
Namespace
Drupal\Core\Entity\Enhancer
Code
protected function enhanceEntityForm(array $defaults, Request $request) { $defaults['_controller'] = 'controller.entity_form:getContentResult'; return $defaults; }
Please login to continue.