public function layout(): array
    {
        if ($this->layout && count($this->layout)) {
            return $this->layout;
        }

        return array_keys($this->fields);
    }
public function layout(): array
    {
        if ($this->layout && count($this->layout)) {
            return $this->layout;
        }

        return array_keys($this->fields);
    }
public function layout ( ) : array { if ( $ this -> layout && count ( $ this -> layout ) ) { return $ this -> layout ; } return array_keys ( $ this -> fields ) ; }
Returns the layout that should be used for displaying the edit form.

@return array|mixed[]
Returns the layout that should be used for displaying the edit form .