src/widgets/ModalButton.php
public function run()
    {
        $this->endModal();

        if ($this->form !== false) {
            $this->endForm();
        }

        if ($this->_oldScenario !== null) {
            $this->model->scenario = $this->_oldScenario;
        }
    }
public function run()
    {
        $this->endModal();

        if ($this->form !== false) {
            $this->endForm();
        }

        if ($this->_oldScenario !== null) {
            $this->model->scenario = $this->_oldScenario;
        }
    }
public function run ( ) { $ this -> endModal ( ) ; if ( $ this -> form !== false ) { $ this -> endForm ( ) ; } if ( $ this -> _oldScenario !== null ) { $ this -> model -> scenario = $ this -> _oldScenario ; } }
Runs widget.
Runs widget .