You are here

abstract protected function FormController::getFormArgument in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Controller/FormController.php \Drupal\Core\Controller\FormController::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.

1 call to FormController::getFormArgument()
FormController::getContentResult in core/lib/Drupal/Core/Controller/FormController.php
Invokes the form and returns the result.
2 methods override FormController::getFormArgument()
HtmlEntityFormController::getFormArgument in core/lib/Drupal/Core/Entity/HtmlEntityFormController.php
Extracts the form argument string from a request.
HtmlFormController::getFormArgument in core/lib/Drupal/Core/Controller/HtmlFormController.php
Extracts the form argument string from a request.

File

core/lib/Drupal/Core/Controller/FormController.php, line 100
Contains \Drupal\Core\Controller\FormController.

Class

FormController
Common base class for form interstitial controllers.

Namespace

Drupal\Core\Controller

Code

protected abstract function getFormArgument(RouteMatchInterface $route_match);