public function Route::getMethods

Same name in this branch

Returns the uppercased HTTP methods this route is restricted to. So an empty array means that any method is allowed.

Return value

array The schemes

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Route.php, line 250

Class

Route
A Route describes a route and its parameters.

Namespace

Symfony\Component\Routing

Code

public function getMethods() {
  return $this->methods;
}