code: protected function renderWidget($widget, $filterOptions)
      {
          $filter       = $widget;
          $templateName = $filter['raw']['eval']['template'];
          $template     = new \FrontendTemplate($templateName ? $templateName : 'mm_filteritem_default');
  
          $template->setData($filter);
  
          $template->submit = $filterOptions->isAutoSubmit();
          $filter['value']  = $template->parse();
  
          return $filter;
      }
docs: Parse a single filter widget.
  
  @param array                 $widget        The widget configuration.
  
  @param FrontendFilterOptions $filterOptions The filter options to apply.
  
  @return array