Bundle/WidgetBundle/Entity/Widget.php
public function getViewId()
    {
        $viewId = null;

        $widgetMap = $this->getWidgetMap();

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

        return $viewId;
    }
public function getViewId()
    {
        $viewId = null;

        $widgetMap = $this->getWidgetMap();

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

        return $viewId;
    }
public function getViewId ( ) { $ viewId = null ; $ widgetMap = $ this -> getWidgetMap ( ) ; if ( $ widgetMap !== null && $ view = $ widgetMap -> getView ( ) !== null ) { $ viewId = $ view -> getId ( ) ; } return $ viewId ; }
Get the view id.

@return int The view id
Get the view id .