Neos\FluidAdaptor\View\AbstractTemplateView::renderSection PHP Method

renderSection() public method

Renders a given section.
public renderSection ( string $sectionName, array $variables = [], boolean $ignoreUnknown = false ) : string
$sectionName string Name of section to render
$variables array The variables to use
$ignoreUnknown boolean Ignore an unknown section and just return an empty string
return string rendered template for the section
    public function renderSection($sectionName, array $variables = [], $ignoreUnknown = false)
    {
        if ($this->getCurrentParsedTemplate() === null) {
            return $this->renderStandaloneSection($sectionName, $variables, $ignoreUnknown);
        }
        return parent::renderSection($sectionName, $variables, $ignoreUnknown);
    }