Bundle/WidgetBundle/Helper/WidgetHelper.php
public function getWidgetName(Widget $widget)
    {
        $widgets = $this->container->getParameter('victoire_core.widgets');
        foreach ($widgets as $widgetParams) {
            if ($widgetParams['class'] === ClassUtils::getClass($widget)) {
                return $widgetParams['name'];
            }
        }

        throw new \Exception('Widget name not found for widget '.get_class($widget).'. Is this widget right declared in AppKernel ?');
    }
public function getWidgetName(Widget $widget)
    {
        $widgets = $this->container->getParameter('victoire_core.widgets');
        foreach ($widgets as $widgetParams) {
            if ($widgetParams['class'] === ClassUtils::getClass($widget)) {
                return $widgetParams['name'];
            }
        }

        throw new \Exception('Widget name not found for widget '.get_class($widget).'. Is this widget right declared in AppKernel ?');
    }
public function getWidgetName ( Widget $ widget ) { $ widgets = $ this -> container -> getParameter ( 'victoire_core.widgets' ) ; foreach ( $ widgets as $ widgetParams ) { if ( $ widgetParams [ 'class' ] === ClassUtils :: getClass ( $ widget ) ) { return $ widgetParams [ 'name' ] ; } } throw new \ Exception ( 'Widget name not found for widget ' . get_class ( $ widget ) . '. Is this widget right declared in AppKernel ?' ) ; }
The name of the widget.

@return string
The name of the widget .