Contao\FrontendTemplate::getCustomSection PHP Method

getCustomSection() public method

Return a custom layout section
Deprecation: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use FrontendTemplate::section() instead.
public getCustomSection ( string $strKey ) : string
$strKey string The section name
return string The section markup
    public function getCustomSection($strKey)
    {
        @trigger_error('Using FrontendTemplate::getCustomSection() has been deprecated and will no longer work in Contao 5.0. Use FrontendTemplate::section() instead.', E_USER_DEPRECATED);
        return '<div id="' . $strKey . '">' . $this->sections[$strKey] . '</div>' . "\n";
    }