Webiny\Component\Router\Route\Route::addOption PHP Method

addOption() public method

Adds a single route option.
public addOption ( string $name, array $attributes )
$name string Name of the parameter to which the option should be attached.
$attributes array An array of options.
    public function addOption($name, array $attributes)
    {
        $this->options[$name] = new RouteOption($name, $attributes);
        return $this;
    }