Neos\Flow\Error\AbstractExceptionHandler::applyLegacyViewOptions PHP Метод

applyLegacyViewOptions() защищенный Метод

Sets legacy "option" properties to the view for backwards compatibility.
protected applyLegacyViewOptions ( Neos\Flow\Mvc\View\ViewInterface $view, array $renderingOptions ) : Neos\Flow\Mvc\View\ViewInterface
$view Neos\Flow\Mvc\View\ViewInterface
$renderingOptions array
Результат Neos\Flow\Mvc\View\ViewInterface
    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;
    }