Networking\InitCmsBundle\Controller\FrontendPageController::viewDraftAction PHP Method

viewDraftAction() public method

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