protected function applyLegacyViewOptions(ViewInterface $view, array $renderingOptions)
{
if (isset($renderingOptions['templatePathAndFilename'])) {
ObjectAccess::setProperty($view, 'templatePathAndFilename', $renderingOptions['templatePathAndFilename']);
}
if (isset($renderingOptions['layoutRootPath'])) {
ObjectAccess::setProperty($view, 'layoutRootPath', $renderingOptions['layoutRootPath']);
}
if (isset($renderingOptions['partialRootPath'])) {
ObjectAccess::setProperty($view, 'partialRootPath', $renderingOptions['partialRootPath']);
}
if (isset($renderingOptions['format'])) {
ObjectAccess::setProperty($view, 'format', $renderingOptions['format']);
}
return $view;
}