src/CoreBundle/EventListener/DcGeneral/Table/Attribute/NameAndDescriptionListener.php
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);
    }
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);
    }
Encode the given value from a real language array into a serialized language array.

@param EncodePropertyValueFromWidgetEvent $event The event.

@return void