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);
}
}