public function disableView(bool $disable = true)
    {
        if ($disable) {
            array_delete($this->actions, 'view');
        } elseif (!in_array('view', $this->actions)) {
            array_push($this->actions, 'view');
        }

        return $this;
    }
public function disableView(bool $disable = true)
    {
        if ($disable) {
            array_delete($this->actions, 'view');
        } elseif (!in_array('view', $this->actions)) {
            array_push($this->actions, 'view');
        }

        return $this;
    }
public function disableView ( bool $ disable = true ) { if ( $ disable ) { array_delete ( $ this -> actions , 'view' ) ; } elseif ( ! in_array ( 'view' , $ this -> actions ) ) { array_push ( $ this -> actions , 'view' ) ; } return $ this ; }
Disable view action.

@return $this
Disable view action .