public function FormStateDecoratorBase::setRequestMethod in Markdown 8.2
Sets the HTTP method used by the request that is building the form.
Parameters
string $method: Can be any valid HTTP method, such as GET, POST, HEAD, etc.
Return value
$this
Overrides FormStateInterface::setRequestMethod
See also
\Drupal\Core\Form\FormStateInterface::setMethod()
File
- src/
BcSupport/ FormStateDecoratorBase.php, line 177
Class
- FormStateDecoratorBase
- Decorates another form state.
Namespace
Drupal\markdown\BcSupportCode
public function setRequestMethod($method) {
$this->decoratedFormState
->setRequestMethod($method);
return $this;
}