public function widgets(Environment $env, $location = null, $zone = Zone::FRONTEND, $wrapper = 'widgetwrapper.twig')
    {
        if ($location === null && $env->isStrictVariables()) {
            throw new \InvalidArgumentException('widgets() requires a location, none given');
        }

        return $this->widgetQueue->render($location, $zone, $wrapper);
    }
public function widgets(Environment $env, $location = null, $zone = Zone::FRONTEND, $wrapper = 'widgetwrapper.twig')
    {
        if ($location === null && $env->isStrictVariables()) {
            throw new \InvalidArgumentException('widgets() requires a location, none given');
        }

        return $this->widgetQueue->render($location, $zone, $wrapper);
    }
public function widgets ( Environment $ env , $ location = null , $ zone = Zone :: FRONTEND , $ wrapper = 'widgetwrapper.twig' ) { if ( $ location === null && $ env -> isStrictVariables ( ) ) { throw new \ InvalidArgumentException ( 'widgets() requires a location, none given' ) ; } return $ this -> widgetQueue -> render ( $ location , $ zone , $ wrapper ) ; }
Renders a particular widget type on the given location.

@param Environment $env
@param string      $location Location (e.g. 'dashboard_aside_top')
@param string      $zone     Either Zone::FRONTEND or Zone::BACKEND
@param string      $wrapper

@return string|Markup
Renders a particular widget type on the given location .