src/Form/Collection/Mutable.php
public function section($section, $position = null)
    {
        if (is_string($section)) {
            $section = new FormSection($section);
        }

        return null !== $position ? $this->insert($section, $position) : $this->push($section);
    }
public function section($section, $position = null)
    {
        if (is_string($section)) {
            $section = new FormSection($section);
        }

        return null !== $position ? $this->insert($section, $position) : $this->push($section);
    }
public function section ( $ section , $ position = null ) { if ( is_string ( $ section ) ) { $ section = new FormSection ( $ section ) ; } return null !== $ position ? $ this -> insert ( $ section , $ position ) : $ this -> push ( $ section ) ; }
Create a section.

@param $section
@param null $position

@return $this
Create a section .