public function Route::setPattern

Same name in this branch

Sets the pattern for the path.

This method implements a fluent interface.

Parameters

string $pattern The path pattern:

Return value

Route The current Route instance

Deprecated

Deprecated in 2.2, to be removed in 3.0. Use setPath instead.

File

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

Class

Route
A Route describes a route and its parameters.

Namespace

Symfony\Component\Routing

Code

public function setPattern($pattern) {
  return $this
    ->setPath($pattern);
}