You are here

public function SubFormState::setRequestMethod in Authorization 8

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/Form/SubFormState.php, line 589

Class

SubFormState
Represents the form state of a sub-form.

Namespace

Drupal\authorization\Form

Code

public function setRequestMethod($method) {
  $this->mainFormState
    ->setRequestMethod($method);
  return $this;
}