FluidTYPO3\Flux\View\ExposedTemplateView::renderStandaloneSection PHP Метод

renderStandaloneSection() публичный Метод

Renders a section from the specified template w/o requring a call to the main render() method - allows for cherry-picking sections to render.
public renderStandaloneSection ( string $sectionName, array $variables, boolean $optional = TRUE ) : string
$sectionName string
$variables array
$optional boolean
Результат string
    public function renderStandaloneSection($sectionName, $variables, $optional = TRUE)
    {
        $content = NULL;
        $this->baseRenderingContext->setControllerContext($this->controllerContext);
        $this->startRendering(AbstractTemplateView::RENDERING_TEMPLATE, $this->getParsedTemplate(), $this->baseRenderingContext);
        $content = parent::renderSection($sectionName, $variables, $optional);
        $this->stopRendering();
        return $content;
    }