code: public function render($widgets, bool $base = true)
      {
          if (!$widgets) {
              return false;
          }
  
          // Output Storage
          $output = '';
  
          // Get User ID
          $userId = $this->tokenStorage->getToken()->getUser()->getId();
  
          foreach ($widgets as $widget) {
              if ($widget->isActive()) {
                  $output .= $this->getOutput($widget, $userId);
              }
          }
  
          // Render Base
          if ($base) {
              $output = $this->engine->render($this->baseTemplate, ['widgets' => $output]);
          }
  
          return $output;
      }
docs: Render Widgets.
  
  @param $widgets ItemInterface[]
  @param bool $base
  
  @throws \Twig_Error_Loader
  @throws \Twig_Error_Runtime
  @throws \Twig_Error_Syntax
  
  @return string