src/Charcoal/Admin/Widget/TableWidget.php
public function objectEditUrl()
    {
        $model = $this->proto();
        $url   = 'object/edit?main_menu={{ main_menu }}&obj_type='.$this->objType();

        if ($model->view()) {
            $url = $model->render((string)$url);
        } else {
            $url = preg_replace('~{{\s*id\s*}}~', $this->currentObjId, $url);
        }

        return $url;
    }
public function objectEditUrl()
    {
        $model = $this->proto();
        $url   = 'object/edit?main_menu={{ main_menu }}&obj_type='.$this->objType();

        if ($model->view()) {
            $url = $model->render((string)$url);
        } else {
            $url = preg_replace('~{{\s*id\s*}}~', $this->currentObjId, $url);
        }

        return $url;
    }
public function objectEditUrl ( ) { $ model = $ this -> proto ( ) ; $ url = 'object/edit?main_menu={{ main_menu }}&obj_type=' . $ this -> objType ( ) ; if ( $ model -> view ( ) ) { $ url = $ model -> render ( ( string ) $ url ) ; } else { $ url = preg_replace ( '~{{\s*id\s*}}~' , $ this -> currentObjId , $ url ) ; } return $ url ; }
Generate URL for editing an object
@return string
Generate URL for editing an object