public function RequestContext::getMethod

Gets the HTTP method.

The method is always an uppercased string.

Return value

string The HTTP method

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/RequestContext.php, line 95

Class

RequestContext
Holds information about the current request.

Namespace

Symfony\Component\Routing

Code

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