public function decodeValue(DecodePropertyValueForWidgetEvent $event)
    {
        if (!($this->wantToHandle($event) && \in_array($event->getProperty(), ['name', 'description']))) {
            return;
        }

        $metaModel = $this->getMetaModelByModelPid($event->getModel());
        $values    = Helper::decodeLangArray($event->getValue(), $metaModel);

        $event->setValue(unserialize($values, ['allowed_classes' => false]));
    }
public function decodeValue(DecodePropertyValueForWidgetEvent $event)
    {
        if (!($this->wantToHandle($event) && \in_array($event->getProperty(), ['name', 'description']))) {
            return;
        }

        $metaModel = $this->getMetaModelByModelPid($event->getModel());
        $values    = Helper::decodeLangArray($event->getValue(), $metaModel);

        $event->setValue(unserialize($values, ['allowed_classes' => false]));
    }
public function decodeValue ( DecodePropertyValueForWidgetEvent $ event ) { if ( ! ( $ this -> wantToHandle ( $ event ) && \ in_array ( $ event -> getProperty ( ) , [ 'name' , 'description' ] ) ) ) { return ; } $ metaModel = $ this -> getMetaModelByModelPid ( $ event -> getModel ( ) ) ; $ values = Helper :: decodeLangArray ( $ event -> getValue ( ) , $ metaModel ) ; $ event -> setValue ( unserialize ( $ values , [ 'allowed_classes' => false ] ) ) ; }
Decode the given value from a serialized language array into the real language array.

@param DecodePropertyValueForWidgetEvent $event The event.

@return void
Decode the given value from a serialized language array into the real language array .