public function initialize()
    {
        parent::initialize();

        $this->setHtmlAttributes($this->getHtmlAttributes() + [
            'type'  => 'submit',
            'name'  => 'next_action',
            'class' => 'btn btn-warning',
            'data-url'=> $this->getModelConfiguration()->getRestoreUrl($this->getModel()->getKey()),
            'data-redirect'=> $this->getModelConfiguration()->getEditUrl($this->getModel()->getKey()),
        ]);
    }
public function initialize()
    {
        parent::initialize();

        $this->setHtmlAttributes($this->getHtmlAttributes() + [
            'type'  => 'submit',
            'name'  => 'next_action',
            'class' => 'btn btn-warning',
            'data-url'=> $this->getModelConfiguration()->getRestoreUrl($this->getModel()->getKey()),
            'data-redirect'=> $this->getModelConfiguration()->getEditUrl($this->getModel()->getKey()),
        ]);
    }
public function initialize ( ) { parent :: initialize ( ) ; $ this -> setHtmlAttributes ( $ this -> getHtmlAttributes ( ) + [ 'type' => 'submit' , 'name' => 'next_action' , 'class' => 'btn btn-warning' , 'data-url' => $ this -> getModelConfiguration ( ) -> getRestoreUrl ( $ this -> getModel ( ) -> getKey ( ) ) , 'data-redirect' => $ this -> getModelConfiguration ( ) -> getEditUrl ( $ this -> getModel ( ) -> getKey ( ) ) , ] ) ; }
Init Restore Button.
Init Restore Button .