protected function WizardFormController::getFormArgument in Chaos Tool Suite (ctools) 8.3
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
1 call to WizardFormController::getFormArgument()
- WizardFormController::getContentResult in src/
Controller/ WizardFormController.php - Invokes the form and returns the result.
1 method overrides WizardFormController::getFormArgument()
- WizardEntityFormController::getFormArgument in src/
Controller/ WizardEntityFormController.php - Extracts the form argument string from a request.
File
- src/
Controller/ WizardFormController.php, line 54
Class
- WizardFormController
- Wrapping controller for wizard forms that serve as the main page body.
Namespace
Drupal\ctools\ControllerCode
protected function getFormArgument(RouteMatchInterface $route_match) {
return $route_match
->getRouteObject()
->getDefault('_wizard');
}