src/Contao/Event/Subscriber.php
private static function decodeValue($environment, $model, $property, $value)
    {
        $event = new DecodePropertyValueForWidgetEvent($environment, $model);
        $event
            ->setProperty($property)
            ->setValue($value);

        $environment->getEventDispatcher()->dispatch(\sprintf('%s', $event::NAME), $event);

        return $event->getValue();
    }
private static function decodeValue($environment, $model, $property, $value)
    {
        $event = new DecodePropertyValueForWidgetEvent($environment, $model);
        $event
            ->setProperty($property)
            ->setValue($value);

        $environment->getEventDispatcher()->dispatch(\sprintf('%s', $event::NAME), $event);

        return $event->getValue();
    }
private static function decodeValue ( $ environment , $ model , $ property , $ value ) { $ event = new DecodePropertyValueForWidgetEvent ( $ environment , $ model ) ; $ event -> setProperty ( $ property ) -> setValue ( $ value ) ; $ environment -> getEventDispatcher ( ) -> dispatch ( \ sprintf ( '%s' , $ event :: NAME ) , $ event ) ; return $ event -> getValue ( ) ; }
Decode a value from native data of the data provider to the widget via event.

@param EnvironmentInterface $environment The environment.
@param ModelInterface       $model       The model.
@param string               $property    The property.
@param mixed                $value       The value of the property.

@return mixed
Decode a value from native data of the data provider to the widget via event .