src/FormLayout/_Abstract.php
protected function getModelFields(\atk4\data\Model $model)
    {
        $fields = [];
        foreach ($model->elements as $f) {
            if (!$f instanceof \atk4\data\Field) {
                continue;
            }

            if ($f->isEditable() || $f->isVisible()) {
                $fields[] = $f->short_name;
            }
        }

        return $fields;
    }
protected function getModelFields(\atk4\data\Model $model)
    {
        $fields = [];
        foreach ($model->elements as $f) {
            if (!$f instanceof \atk4\data\Field) {
                continue;
            }

            if ($f->isEditable() || $f->isVisible()) {
                $fields[] = $f->short_name;
            }
        }

        return $fields;
    }
protected function getModelFields ( \ atk4 \ data \ Model $ model ) { $ fields = [ ] ; foreach ( $ model -> elements as $ f ) { if ( ! $ f instanceof \ atk4 \ data \ Field ) { continue ; } if ( $ f -> isEditable ( ) || $ f -> isVisible ( ) ) { $ fields [ ] = $ f -> short_name ; } } return $ fields ; }
Returns array of names of fields to automatically include them in form.
This includes all editable or visible fields of the model.

@param \atk4\data\Model $model

@return array
Returns array of names of fields to automatically include them in form . This includes all editable or visible fields of the model .