/**
  * Set some specials variables to modify the workflow of the widget factory.
  *
  * @param Request $request
  */
 protected function prepareGlobals(Request $request)
 {
     WidgetId::set($request->input('id', 1) - 1);
     AbstractWidgetFactory::$skipWidgetContainer = true;
 }