diff --git a/core/modules/layout_builder/src/Controller/LayoutBuilderHtmlEntityFormController.php b/core/modules/layout_builder/src/Controller/LayoutBuilderHtmlEntityFormController.php index eac8695a64..5a3ea7d712 100644 --- a/core/modules/layout_builder/src/Controller/LayoutBuilderHtmlEntityFormController.php +++ b/core/modules/layout_builder/src/Controller/LayoutBuilderHtmlEntityFormController.php @@ -11,7 +11,7 @@ /** * Overrides the entity form controller service for layout builder operations. */ -class LayoutBuilderHtmlEntityFormController { +class LayoutBuilderHtmlEntityFormController extends FormController { use DependencySerializationTrait; @@ -56,4 +56,18 @@ public function getContentResult(Request $request, RouteMatchInterface $route_ma return $form; } + /** + * {@inheritdoc} + */ + protected function getFormArgument(RouteMatchInterface $route_match) { + return $this->entityFormController->getFormArgument($route_match); + } + + /** + * {@inheritdoc} + */ + protected function getFormObject(RouteMatchInterface $route_match, $form_arg) { + return $this->entityFormController->getFormObject($route_match, $form_arg); + } + }