src/Builders/ControllerBuilder.php
public function compactEditBuilder()
    {
        if ($this->relationships == 0 && $this->enum == 0) {
            return '';
        } else {
            $compact = '';
            if ($this->relationships > 0) {
                foreach ($this->fields as $field) {
                    if ($field->type == 'relationship') {
                        $compact .= ', "' . $field->relationship_name . '"';
                    }
                }
            }
            if ($this->enum > 0) {
                foreach ($this->fields as $field) {
                    if ($field->type == 'enum') {
                        $compact .= ', "' . $field->title . '"';
                    }
                }
            }

            return $compact;
        }
    }
public function compactEditBuilder()
    {
        if ($this->relationships == 0 && $this->enum == 0) {
            return '';
        } else {
            $compact = '';
            if ($this->relationships > 0) {
                foreach ($this->fields as $field) {
                    if ($field->type == 'relationship') {
                        $compact .= ', "' . $field->relationship_name . '"';
                    }
                }
            }
            if ($this->enum > 0) {
                foreach ($this->fields as $field) {
                    if ($field->type == 'enum') {
                        $compact .= ', "' . $field->title . '"';
                    }
                }
            }

            return $compact;
        }
    }
public function compactEditBuilder ( ) { if ( $ this -> relationships == 0 && $ this -> enum == 0 ) { return '' ; } else { $ compact = '' ; if ( $ this -> relationships > 0 ) { foreach ( $ this -> fields as $ field ) { if ( $ field -> type == 'relationship' ) { $ compact .= ', "' . $ field -> relationship_name . '"' ; } } } if ( $ this -> enum > 0 ) { foreach ( $ this -> fields as $ field ) { if ( $ field -> type == 'enum' ) { $ compact .= ', "' . $ field -> title . '"' ; } } } return $ compact ; } }
Build compact for edit form
@return string
Build compact for edit form