src/CoreBundle/EventListener/DcGeneral/Table/RenderSettings/JumpToListener.php
public function encodeValue(EncodePropertyValueFromWidgetEvent $event)
    {
        if (!$this->wantToHandle($event) || ($event->getProperty() !== 'jumpTo')) {
            return;
        }

        $value = StringUtil::deserialize($event->getValue(), true);

        foreach ($value as $k => $v) {
            $value[$k]['value'] = str_replace(['{{link_url::', '}}'], ['', ''], $v['value']);
        }

        $event->setValue(serialize($value));
    }
public function encodeValue(EncodePropertyValueFromWidgetEvent $event)
    {
        if (!$this->wantToHandle($event) || ($event->getProperty() !== 'jumpTo')) {
            return;
        }

        $value = StringUtil::deserialize($event->getValue(), true);

        foreach ($value as $k => $v) {
            $value[$k]['value'] = str_replace(['{{link_url::', '}}'], ['', ''], $v['value']);
        }

        $event->setValue(serialize($value));
    }
public function encodeValue ( EncodePropertyValueFromWidgetEvent $ event ) { if ( ! $ this -> wantToHandle ( $ event ) || ( $ event -> getProperty ( ) !== 'jumpTo' ) ) { return ; } $ value = StringUtil :: deserialize ( $ event -> getValue ( ) , true ) ; foreach ( $ value as $ k => $ v ) { $ value [ $ k ] [ 'value' ] = str_replace ( [ '{{link_url::' , '}}' ] , [ '' , '' ] , $ v [ 'value' ] ) ; } $ event -> setValue ( serialize ( $ value ) ) ; }
Translates the values of the jumpTo entries into the internal array.

@param EncodePropertyValueFromWidgetEvent $event The event.

@return void
Translates the values of the jumpTo entries into the internal array .