code: public function createMenuItem(PickerConfig $config)
      {
          $name = $this->getName();
  
          if (null === $this->translator) {
              @trigger_error('Using a picker provider without injecting the translator service has been deprecated and will no longer work in Contao 5.0.', E_USER_DEPRECATED);
              $label = $GLOBALS['TL_LANG']['MSC'][$name];
          } else {
              $label = $this->translator->trans('MSC.'.$name, [], 'contao_default');
          }
  
          return $this->menuFactory->createItem(
              $name,
              [
                  'label' => $label ?: $name,
                  'linkAttributes' => ['class' => $name],
                  'current' => $this->isCurrent($config),
                  'uri' => $this->generateUrl($config, true),
              ]
          );
      }
docs: {@inheritdoc}