src/Controller/FrontendPageController.php
public function viewDraftAction(Request $request, $locale, $path = null)
    {
        $request->setLocale($locale);

        return $this->changeViewMode($request, PageInterface::STATUS_DRAFT, $path);
    }
public function viewDraftAction(Request $request, $locale, $path = null)
    {
        $request->setLocale($locale);

        return $this->changeViewMode($request, PageInterface::STATUS_DRAFT, $path);
    }
public function viewDraftAction ( Request $ request , $ locale , $ path = null ) { $ request -> setLocale ( $ locale ) ; return $ this -> changeViewMode ( $ request , PageInterface :: STATUS_DRAFT , $ path ) ; }
View the website in Draft mode.

@param Request      $request
@param string       $locale
@param string /null $path

@return RedirectResponse
View the website in Draft mode .