classes/Fields/BelongsTo.php
public function wrapAndRender()
    {
        // Apend the edit button
        $this->appendEditButton();

        // Add control group attributes
        $this->addGroupClass('belongs-to');
        $this->group->setAttribute('data-js-view', 'belongs-to');
        if ($this->route) {
            $this->group->setAttribute('data-controller-route', $this->route);
        }

        // Continue doing normal wrapping
        return parent::wrapAndRender();
    }
public function wrapAndRender()
    {
        // Apend the edit button
        $this->appendEditButton();

        // Add control group attributes
        $this->addGroupClass('belongs-to');
        $this->group->setAttribute('data-js-view', 'belongs-to');
        if ($this->route) {
            $this->group->setAttribute('data-controller-route', $this->route);
        }

        // Continue doing normal wrapping
        return parent::wrapAndRender();
    }
public function wrapAndRender ( ) { // Apend the edit button $ this -> appendEditButton ( ) ; // Add control group attributes $ this -> addGroupClass ( 'belongs-to' ) ; $ this -> group -> setAttribute ( 'data-js-view' , 'belongs-to' ) ; if ( $ this -> route ) { $ this -> group -> setAttribute ( 'data-controller-route' , $ this -> route ) ; } // Continue doing normal wrapping return parent :: wrapAndRender ( ) ; }
Prints out the field, wrapped in its group.  This is the opportunity
to tack additional stuff onto the control group

@return string
Prints out the field wrapped in its group . This is the opportunity to tack additional stuff onto the control group