Devise\Pages\PageResponseHandler::requestCopyPage PHP Method

requestCopyPage() public method

Request the page be copied to another page (duplicated)
public requestCopyPage ( integer $id, array $input ) : Redirector
$id integer
$input array
return Illuminate\Routing\Redirector
    public function requestCopyPage($id, $input)
    {
        $page = $this->PageManager->copyPage($id, $input);
        if ($page) {
            return $this->Redirect->route('dvs-pages')->with('warnings', $this->PageManager->warnings)->with('message', $this->PageManager->message);
        }
        return $this->Redirect->route('dvs-pages-copy', $id)->withInput()->withErrors($this->PageManager->errors)->with('message', $this->PageManager->message);
    }