run() public method

Run the controller and parse the template
public run ( ) : Response
return Symfony\Component\HttpFoundation\Response
 /**
  * Renders the front end preview switcher.
  *
  * @return Response
  *
  * @Route("/switch", name="contao_backend_switch")
  */
 public function switchAction()
 {
     $this->container->get('contao.framework')->initialize();
     $controller = new BackendSwitch();
     return $controller->run();
 }