You are here

public function Route::getPattern in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/routing/Route.php \Symfony\Component\Routing\Route::getPattern()
  2. 8 vendor/symfony/routing/Annotation/Route.php \Symfony\Component\Routing\Annotation\Route::getPattern()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Route.php \Symfony\Component\Routing\Route::getPattern()

Returns the pattern for the path.

Return value

string The pattern

Deprecated

since version 2.2, to be removed in 3.0. Use getPath instead.

File

vendor/symfony/routing/Route.php, line 148

Class

Route
A Route describes a route and its parameters.

Namespace

Symfony\Component\Routing

Code

public function getPattern() {
  @trigger_error('The ' . __METHOD__ . ' method is deprecated since version 2.2 and will be removed in 3.0. Use the getPath() method instead.', E_USER_DEPRECATED);
  return $this->path;
}