Bundle/WidgetBundle/Resolver/BaseWidgetContentResolver.php
public function getWidgetQueryContent(Widget $widget)
    {
        $parameters = $this->getWidgetStaticContent($widget);

        $entity = $this->getWidgetQueryBuilder($widget)
                        ->setMaxResults(1)
                        ->getQuery()
                        ->getOneOrNullResult();

        $fields = $widget->getFields();
        $this->populateParametersWithWidgetFields($widget, $entity, $parameters);

        return $parameters;
    }
public function getWidgetQueryContent(Widget $widget)
    {
        $parameters = $this->getWidgetStaticContent($widget);

        $entity = $this->getWidgetQueryBuilder($widget)
                        ->setMaxResults(1)
                        ->getQuery()
                        ->getOneOrNullResult();

        $fields = $widget->getFields();
        $this->populateParametersWithWidgetFields($widget, $entity, $parameters);

        return $parameters;
    }
public function getWidgetQueryContent ( Widget $ widget ) { $ parameters = $ this -> getWidgetStaticContent ( $ widget ) ; $ entity = $ this -> getWidgetQueryBuilder ( $ widget ) -> setMaxResults ( 1 ) -> getQuery ( ) -> getOneOrNullResult ( ) ; $ fields = $ widget -> getFields ( ) ; $ this -> populateParametersWithWidgetFields ( $ widget , $ entity , $ parameters ) ; return $ parameters ; }
Get the content of the widget for the query mode.

@param Widget $widget

@return string
Get the content of the widget for the query mode .