Neos\FluidAdaptor\ViewHelpers\RenderChildrenViewHelper::getWidgetRenderingContext PHP Method

getWidgetRenderingContext() protected method

Get the widget rendering context, or throw an exception if it cannot be found.
protected getWidgetRenderingContext ( ) : TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface
return TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface
    protected function getWidgetRenderingContext()
    {
        $renderingContext = $this->getWidgetContext()->getViewHelperChildNodeRenderingContext();
        if (!$renderingContext instanceof RenderingContextInterface) {
            throw new RenderingContextNotFoundException('Rendering Context not found inside Widget. <f:renderChildren> has been used in an AJAX Request, but is only usable in non-ajax mode.', 1284986604);
        }
        return $renderingContext;
    }