code: public function encodeValue(EncodePropertyValueFromWidgetEvent $event)
      {
          if (!($this->wantToHandle($event) && \in_array($event->getProperty(), ['name', 'description']))) {
              return;
          }
          $metaModel = $this->getMetaModelByModelPid($event->getModel());
          $values    = Helper::encodeLangArray($event->getValue(), $metaModel);
  
          $event->setValue($values);
      }
docs: Encode the given value from a real language array into a serialized language array.
  
  @param EncodePropertyValueFromWidgetEvent $event The event.
  
  @return void