code: protected function getLabelText(TranslatorInterface $translator, ModelInterface $model)
      {
          $type  = $model->getProperty('type');
          $label = $translator->translate('typenames.' . $type, 'tl_metamodel_filtersetting');
          if ($label == 'typenames.' . $type) {
              return $type;
          }
          return $label;
      }
docs: Retrieve the label text for a filter setting.
  
  @param TranslatorInterface $translator The translator in use.
  @param ModelInterface      $model      The filter setting to render.
  
  @return mixed|string