src/Contao/View/Contao2BackendView/ViewHelpers.php
public static function getReadableFieldValue(
        EnvironmentInterface $environment,
        PropertyInterface $property,
        ModelInterface $model
    ) {
        $event = new RenderReadablePropertyValueEvent(
            $environment,
            $model,
            $property,
            $model->getProperty($property->getName())
        );

        $environment->getEventDispatcher()->dispatch($event::NAME, $event);

        if (null !== $event->getRendered()) {
            return $event->getRendered();
        }

        return $event->getValue();
    }
public static function getReadableFieldValue(
        EnvironmentInterface $environment,
        PropertyInterface $property,
        ModelInterface $model
    ) {
        $event = new RenderReadablePropertyValueEvent(
            $environment,
            $model,
            $property,
            $model->getProperty($property->getName())
        );

        $environment->getEventDispatcher()->dispatch($event::NAME, $event);

        if (null !== $event->getRendered()) {
            return $event->getRendered();
        }

        return $event->getValue();
    }
public static function getReadableFieldValue ( EnvironmentInterface $ environment , PropertyInterface $ property , ModelInterface $ model ) { $ event = new RenderReadablePropertyValueEvent ( $ environment , $ model , $ property , $ model -> getProperty ( $ property -> getName ( ) ) ) ; $ environment -> getEventDispatcher ( ) -> dispatch ( $ event :: NAME , $ event ) ; if ( null !== $ event -> getRendered ( ) ) { return $ event -> getRendered ( ) ; } return $ event -> getValue ( ) ; }
Get for a field the readable value.

@param EnvironmentInterface $environment The environment.
@param PropertyInterface    $property    The property to be rendered.
@param ModelInterface       $model       The model from which the property value shall be retrieved from.

@return mixed
Get for a field the readable value .