code: public function encodeValue(EncodePropertyValueFromWidgetEvent $event)
      {
          if (!$this->wantToHandle($event)) {
              return;
          }
  
          $metaModel = $this->getMetaModelFromModel($event->getModel());
  
          $values = Helper::encodeLangArray($event->getValue(), $metaModel);
  
          $event->setValue($values);
      }
docs: Encode the title value.
  
  @param EncodePropertyValueFromWidgetEvent $event The event.
  
  @return void