You are here

protected function LayoutBuilderDecorationTestHtmlEntityFormController::getFormArgument in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/tests/modules/layout_builder_decoration_test/src/Controller/LayoutBuilderDecorationTestHtmlEntityFormController.php \Drupal\layout_builder_decoration_test\Controller\LayoutBuilderDecorationTestHtmlEntityFormController::getFormArgument()

Extracts the form argument string from a request.

Depending on the type of form the argument string may be stored in a different request attribute.

One example of a route definition is given below.

defaults:
_form:
Drupal\example\Form\ExampleForm;

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match object from which to extract a form definition string.

Return value

string The form definition string.

Overrides FormController::getFormArgument

File

core/modules/layout_builder/tests/modules/layout_builder_decoration_test/src/Controller/LayoutBuilderDecorationTestHtmlEntityFormController.php, line 41

Class

LayoutBuilderDecorationTestHtmlEntityFormController
Overrides the entity form controller service for layout builder decoration test.

Namespace

Drupal\layout_builder_decoration_test\Controller

Code

protected function getFormArgument(RouteMatchInterface $route_match) {
  return $this->entityFormController
    ->getFormArgument($route_match);
}