abstract protected function FormController::getFormArgument in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Controller/FormController.php \Drupal\Core\Controller\FormController::getFormArgument()
- 10 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 112
Class
- FormController
- Common base class for form interstitial controllers.
Namespace
Drupal\Core\ControllerCode
protected abstract function getFormArgument(RouteMatchInterface $route_match);