The HTTP method used by the request building or processing this form.
May be any valid HTTP method. Defaults to 'GET', because even though $method is 'POST' for most forms, the form's initial build is usually performed as part of a GET request.
This property is uncacheable.
Type: string
File
- core/lib/Drupal/Core/Form/FormState.php, line 176
Class
- FormState
- Stores information about the state of a form.
Namespace
Drupal\Core\Form
Code
protected $requestMethod = 'GET';
Please login to continue.