Twig/WidgetExtension.php
public function renderWidget(string $widgetGroup = '', array $widgetId = [])
    {
        $widgets = $this->widgetBuilder->build($this->widgets->getWidgets(), $widgetGroup, $widgetId);

        return $this->engine->render($widgets);
    }
public function renderWidget(string $widgetGroup = '', array $widgetId = [])
    {
        $widgets = $this->widgetBuilder->build($this->widgets->getWidgets(), $widgetGroup, $widgetId);

        return $this->engine->render($widgets);
    }
Render Widget Group|Item.

@param string $widgetGroup
@param array  $widgetId

@return string