public function getViewId()
    {
        $viewId = null;

        $widgetMap = $this->getWidgetMap();

        if ($widgetMap !== null && $view = $widgetMap->getView() !== null) {
            $viewId = $view->getId();
        }

        return $viewId;
    }