src/Form/SharpForm.php
function formLayout(): array
    {
        if(!$this->layoutBuilt) {
            $this->buildFormLayout();
            $this->layoutBuilt = true;
        }

        return [
            "tabbed" => $this->tabbed,
            "tabs" => collect($this->tabs)->map(function($tab) {
                return $tab->toArray();
            })->all()
        ];
    }
function formLayout(): array
    {
        if(!$this->layoutBuilt) {
            $this->buildFormLayout();
            $this->layoutBuilt = true;
        }

        return [
            "tabbed" => $this->tabbed,
            "tabs" => collect($this->tabs)->map(function($tab) {
                return $tab->toArray();
            })->all()
        ];
    }
function formLayout ( ) : array { if ( ! $ this -> layoutBuilt ) { $ this -> buildFormLayout ( ) ; $ this -> layoutBuilt = true ; } return [ "tabbed" => $ this -> tabbed , "tabs" => collect ( $ this -> tabs ) -> map ( function ( $ tab ) { return $ tab -> toArray ( ) ; } ) -> all ( ) ] ; }
Return the form fields layout.

@return array
Return the form fields layout .