protected property FormState::$requestMethod in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Form/FormState.php \Drupal\Core\Form\FormState::requestMethod
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\FormCode
protected $requestMethod = 'GET';