You are here

public function Route::getOption in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Route.php \Symfony\Component\Routing\Route::getOption()

Get an option value.

Parameters

string $name An option name:

Return value

mixed The option value or null when not given

1 call to Route::getOption()
Route::compile in vendor/symfony/routing/Route.php
Compiles the route.

File

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

Class

Route
A Route describes a route and its parameters.

Namespace

Symfony\Component\Routing

Code

public function getOption($name) {
  return isset($this->options[$name]) ? $this->options[$name] : null;
}