Neos\Flow\Error\AbstractExceptionHandler::resolveCustomRenderingOptions PHP Method

resolveCustomRenderingOptions() protected method

Checks if custom rendering rules apply to the given $exception and returns those.
protected resolveCustomRenderingOptions ( object $exception ) : array
$exception object \Exception or \Throwable
return array the custom rendering options, or NULL if no custom rendering is defined for this exception
    protected function resolveCustomRenderingOptions($exception)
    {
        $renderingOptions = [];
        if (isset($this->options['defaultRenderingOptions'])) {
            $renderingOptions = $this->options['defaultRenderingOptions'];
        }
        $renderingGroup = $this->resolveRenderingGroup($exception);
        if ($renderingGroup !== null) {
            $renderingOptions = Arrays::arrayMergeRecursiveOverrule($renderingOptions, $this->options['renderingGroups'][$renderingGroup]['options']);
            $renderingOptions['renderingGroup'] = $renderingGroup;
        }
        return $renderingOptions;
    }