src/Charcoal/Admin/Widget/FormSidebarWidget.php
public function isObjResettable()
    {
        if ($this->isObjResettable === null) {
            // Overridden by permissions
            if (!$this->checkPermission('reset') || !$this->form()) {
                $this->isObjResettable = false;
            } else {
                $this->isObjResettable = true;

                $obj    = $this->form()->obj();
                $method = [ $obj, 'isResettable' ];
                if (is_callable($method)) {
                    $this->isObjResettable = call_user_func($method);
                }
            }
        }

        return $this->isObjResettable;
    }
public function isObjResettable()
    {
        if ($this->isObjResettable === null) {
            // Overridden by permissions
            if (!$this->checkPermission('reset') || !$this->form()) {
                $this->isObjResettable = false;
            } else {
                $this->isObjResettable = true;

                $obj    = $this->form()->obj();
                $method = [ $obj, 'isResettable' ];
                if (is_callable($method)) {
                    $this->isObjResettable = call_user_func($method);
                }
            }
        }

        return $this->isObjResettable;
    }
public function isObjResettable ( ) { if ( $ this -> isObjResettable === null ) { // Overridden by permissions if ( ! $ this -> checkPermission ( 'reset' ) || ! $ this -> form ( ) ) { $ this -> isObjResettable = false ; } else { $ this -> isObjResettable = true ; $ obj = $ this -> form ( ) -> obj ( ) ; $ method = [ $ obj , 'isResettable' ] ; if ( is_callable ( $ method ) ) { $ this -> isObjResettable = call_user_func ( $ method ) ; } } } return $ this -> isObjResettable ; }
Determine if the object can be reset.

If TRUE, the "Reset" button is shown. The object can still be
reset to its default values programmatically or emptied via direct
action on the database.

@return boolean
Determine if the object can be reset .