function WorkspacesHtmlEntityFormController::getFormArgument
Same name and namespace in other branches
- 10 core/modules/workspaces/src/Controller/WorkspacesHtmlEntityFormController.php \Drupal\workspaces\Controller\WorkspacesHtmlEntityFormController::getFormArgument()
- main core/modules/workspaces/src/Controller/WorkspacesHtmlEntityFormController.php \Drupal\workspaces\Controller\WorkspacesHtmlEntityFormController::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
1 call to WorkspacesHtmlEntityFormController::getFormArgument()
- WorkspacesHtmlEntityFormController::getContentResult in core/
modules/ workspaces/ src/ Controller/ WorkspacesHtmlEntityFormController.php - Invokes the form and returns the result.
File
-
core/
modules/ workspaces/ src/ Controller/ WorkspacesHtmlEntityFormController.php, line 91
Class
- WorkspacesHtmlEntityFormController
- Overrides the entity form controller service for workspaces operations.
Namespace
Drupal\workspaces\ControllerCode
protected function getFormArgument(RouteMatchInterface $route_match) : string {
return $this->entityFormController
->getFormArgument($route_match);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.