protected function applyLegacyViewOptions(ViewInterface $view, array $renderingOptions): ViewInterface
    {
        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;
    }
protected function applyLegacyViewOptions(ViewInterface $view, array $renderingOptions): ViewInterface
    {
        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;
    }
protected function applyLegacyViewOptions ( ViewInterface $ view , array $ renderingOptions ) : ViewInterface { 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 ; }
Sets legacy "option" properties to the view for backwards compatibility.

@param ViewInterface $view
@param array $renderingOptions
@return ViewInterface
Sets legacy option properties to the view for backwards compatibility .