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);
    }