DNRoot::getCustomisedViewSection PHP Method

getCustomisedViewSection() protected method

protected getCustomisedViewSection ( string $sectionName, string $title = '', $data = [] ) : SS_HTTPResponse
$sectionName string
$title string
return SS_HTTPResponse
    protected function getCustomisedViewSection($sectionName, $title = '', $data = [])
    {
        // Performs canView permission check by limiting visible projects
        $project = $this->getCurrentProject();
        if (!$project) {
            return $this->project404Response();
        }
        $data[$sectionName] = 1;
        if ($this !== '') {
            $data['Title'] = $title;
        }
        return $this->render($data);
    }