Neos\FluidAdaptor\View\AbstractTemplateView::setOption PHP Method

setOption() public method

Set a specific option of this View
public setOption ( string $optionName, mixed $value ) : void
$optionName string
$value mixed
return void
    public function setOption($optionName, $value)
    {
        if (!array_key_exists($optionName, $this->supportedOptions)) {
            throw new \Neos\Flow\Mvc\Exception(sprintf('The view option "%s" you\'re trying to set doesn\'t exist in class "%s".', $optionName, get_class($this)), 1359625876);
        }
        $this->options[$optionName] = $value;
        if ($this->baseRenderingContext instanceof RenderingContext) {
            $this->baseRenderingContext->setOption($optionName, $value);
        }
    }