public function resetState() { if ($this->ajaxWidget) { $this->widgetContext = $this->objectManager->get(WidgetContext::class); } }