src/FormLayout/Generic.php
public function addSubLayout($seed = 'Generic', $addDivider = true)
    {
        $v = $this->add($this->factory($seed, ['form' => $this->form], 'FormLayout/Section'));
        if ($v instanceof \atk4\ui\FormLayout\Section\Generic) {
            $v = $v->addSection();
        }

        if ($addDivider) {
            $this->add(['ui' => 'hidden divider']);
        }

        return $v;
    }
public function addSubLayout($seed = 'Generic', $addDivider = true)
    {
        $v = $this->add($this->factory($seed, ['form' => $this->form], 'FormLayout/Section'));
        if ($v instanceof \atk4\ui\FormLayout\Section\Generic) {
            $v = $v->addSection();
        }

        if ($addDivider) {
            $this->add(['ui' => 'hidden divider']);
        }

        return $v;
    }
public function addSubLayout ( $ seed = 'Generic' , $ addDivider = true ) { $ v = $ this -> add ( $ this -> factory ( $ seed , [ 'form' => $ this -> form ] , 'FormLayout/Section' ) ) ; if ( $ v instanceof \ atk4 \ ui \ FormLayout \ Section \ Generic ) { $ v = $ v -> addSection ( ) ; } if ( $ addDivider ) { $ this -> add ( [ 'ui' => 'hidden divider' ] ) ; } return $ v ; }
Add a form layout section to this layout.

Each section may contain other section or group.

@param mixed $seed
@param bool  $addDivider Should we add divider after this section

@throws \atk4\core\Exception
@throws \atk4\ui\Exception

@return static
Add a form layout section to this layout .