protected function NodeCloneFormController::getFormArgument in Node clone 8
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
- src/
Controller/ NodeCloneFormController.php, line 60
Class
- NodeCloneFormController
- Wrapping controller for entity forms that serve as the main page body.
Namespace
Drupal\node_clone\ControllerCode
protected function getFormArgument(RouteMatchInterface $route_match) {
return 'node';
}