You are here

public function SubFormState::isMethodType in Authorization 8

Returns the HTTP form method.

Parameters

string $method_type: The HTTP form method.

Return value

bool TRUE if the HTTP form method matches.

Overrides FormStateInterface::isMethodType

See also

\Drupal\Core\Form\FormState::$method

File

src/Form/SubFormState.php, line 597

Class

SubFormState
Represents the form state of a sub-form.

Namespace

Drupal\authorization\Form

Code

public function isMethodType($method_type) : bool {
  return $this->mainFormState
    ->isMethodType($method_type);
}