Devise\Pages\PageResponseHandler::requestDestroyPage PHP Method

requestDestroyPage() public method

Request the page be deleted from database
public requestDestroyPage ( integer $id ) : Redirector
$id integer
return Illuminate\Routing\Redirector
    public function requestDestroyPage($id)
    {
        $page = $this->PageManager->destroyPage($id);
        if ($page) {
            return $this->Redirect->route('dvs-pages')->with('warnings', $this->PageManager->warnings)->with('message', $this->PageManager->message);
        }
        return $this->Redirect->route('dvs-pages')->withInput()->withErrors($this->PageManager->errors)->with('message', $this->PageManager->message);
    }