You are here

protected function LayoutBuilderHtmlEntityFormController::getFormObject in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/src/Controller/LayoutBuilderHtmlEntityFormController.php \Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController::getFormObject()

Returns the object used to build the form.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match.

string $form_arg: Either a class name or a service ID.

Return value

\Drupal\Core\Form\FormInterface The form object to use.

Overrides FormController::getFormObject

File

core/modules/layout_builder/src/Controller/LayoutBuilderHtmlEntityFormController.php, line 69

Class

LayoutBuilderHtmlEntityFormController
Overrides the entity form controller service for layout builder operations.

Namespace

Drupal\layout_builder\Controller

Code

protected function getFormObject(RouteMatchInterface $route_match, $form_arg) {
  return $this->entityFormController
    ->getFormObject($route_match, $form_arg);
}