Checks if the request method is of specified type.
Parameters
string $method Uppercase request method (GET, POST etc).:
Return value
Boolean
File
- drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Request.php, line 1087
Class
- Request
- Request represents an HTTP request.
Namespace
Symfony\Component\HttpFoundation
Code
public function isMethod($method) {
return $this
->getMethod() === strtoupper($method);
}