public function addSection(Section $section)
    {
        $this->registry['sections'][] = $section;

        $this->currentSection = $section;

        return $this;
    }
public function addSection(Section $section)
    {
        $this->registry['sections'][] = $section;

        $this->currentSection = $section;

        return $this;
    }
public function addSection ( Section $ section ) { $ this -> registry [ 'sections' ] [ ] = $ section ; $ this -> currentSection = $ section ; return $ this ; }
Adds a new section

@param Section $section
@return SettingsPage
Adds a new section