Neos\Neos\Fusion\ExceptionHandlers\NodeWrappingHandler::handle PHP Метод

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

..
protected handle ( string $typoScriptPath, Exception $exception, integer $referenceCode ) : string
$typoScriptPath string - path causing the exception
$exception Exception - exception to handle
$referenceCode integer - might be unset
Результат string
    protected function handle($typoScriptPath, \Exception $exception, $referenceCode)
    {
        $handler = new ContextDependentHandler();
        $handler->setRuntime($this->runtime);
        $output = $handler->handleRenderingException($typoScriptPath, $exception);
        $currentContext = $this->getRuntime()->getCurrentContext();
        if (isset($currentContext['node'])) {
            /** @var NodeInterface $node */
            $node = $currentContext['node'];
            $applicationContext = $this->environment->getContext();
            if ($applicationContext->isProduction() && $this->privilegeManager->isPrivilegeTargetGranted('Neos.Neos:Backend.GeneralAccess') && $node->getContext()->getWorkspaceName() !== 'live') {
                $output = '<div class="neos-rendering-exception"><div class="neos-rendering-exception-title">Failed to render element' . $output . '</div></div>';
            }
            return $this->contentElementWrappingService->wrapContentObject($node, $output, $typoScriptPath);
        }
        return $output;
    }
NodeWrappingHandler