BookStack\Http\Controllers\PageController::editDraft PHP Method

editDraft() public method

Show form to continue editing a draft page.
public editDraft ( string $bookSlug, integer $pageId ) : Illuminate\Contracts\View\Factory | Illuminate\View\View
$bookSlug string
$pageId integer
return Illuminate\Contracts\View\Factory | Illuminate\View\View
    public function editDraft($bookSlug, $pageId)
    {
        $book = $this->bookRepo->getBySlug($bookSlug);
        $draft = $this->pageRepo->getById($pageId, true);
        $this->checkOwnablePermission('page-create', $book);
        $this->setPageTitle('Edit Page Draft');
        $draftsEnabled = $this->signedIn;
        return view('pages/edit', ['page' => $draft, 'book' => $book, 'isDraft' => true, 'draftsEnabled' => $draftsEnabled]);
    }