src/Contao/Event/Subscriber.php
public function renderReadablePropertyValue(RenderReadablePropertyValueEvent $event)
    {
        if (!$this->scopeDeterminator->currentScopeIsBackend()) {
            return;
        }

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

        $property = $event->getProperty();
        $value    = self::decodeValue(
            $event->getEnvironment(),
            $event->getModel(),
            $event->getProperty()->getName(),
            $event->getValue()
        );

        $extra = $property->getExtra();

        self::renderForeignKeyReadable($event, $extra, $value);
        self::renderArrayReadable($event, $value);
        self::renderTimestampReadable($event, $extra, $value);
        self::renderDateTimePropertyIsTstamp($event, $property, $value);
        self::renderSimpleCheckbox($event, $property, $extra, $value);
        self::renderTextAreaReadable($event, $property, $extra, $value);
        self::renderReferenceReadable($event, $extra, $value);

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

        self::renderDateTimeValueInstance($event, $value);
        self::renderOptionValueReadable($event, $property, $value);
    }
public function renderReadablePropertyValue(RenderReadablePropertyValueEvent $event)
    {
        if (!$this->scopeDeterminator->currentScopeIsBackend()) {
            return;
        }

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

        $property = $event->getProperty();
        $value    = self::decodeValue(
            $event->getEnvironment(),
            $event->getModel(),
            $event->getProperty()->getName(),
            $event->getValue()
        );

        $extra = $property->getExtra();

        self::renderForeignKeyReadable($event, $extra, $value);
        self::renderArrayReadable($event, $value);
        self::renderTimestampReadable($event, $extra, $value);
        self::renderDateTimePropertyIsTstamp($event, $property, $value);
        self::renderSimpleCheckbox($event, $property, $extra, $value);
        self::renderTextAreaReadable($event, $property, $extra, $value);
        self::renderReferenceReadable($event, $extra, $value);

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

        self::renderDateTimeValueInstance($event, $value);
        self::renderOptionValueReadable($event, $property, $value);
    }
public function renderReadablePropertyValue ( RenderReadablePropertyValueEvent $ event ) { if ( ! $ this -> scopeDeterminator -> currentScopeIsBackend ( ) ) { return ; } if ( null !== $ event -> getRendered ( ) ) { return ; } $ property = $ event -> getProperty ( ) ; $ value = self :: decodeValue ( $ event -> getEnvironment ( ) , $ event -> getModel ( ) , $ event -> getProperty ( ) -> getName ( ) , $ event -> getValue ( ) ) ; $ extra = $ property -> getExtra ( ) ; self :: renderForeignKeyReadable ( $ event , $ extra , $ value ) ; self :: renderArrayReadable ( $ event , $ value ) ; self :: renderTimestampReadable ( $ event , $ extra , $ value ) ; self :: renderDateTimePropertyIsTstamp ( $ event , $ property , $ value ) ; self :: renderSimpleCheckbox ( $ event , $ property , $ extra , $ value ) ; self :: renderTextAreaReadable ( $ event , $ property , $ extra , $ value ) ; self :: renderReferenceReadable ( $ event , $ extra , $ value ) ; if ( null !== $ event -> getRendered ( ) ) { return ; } self :: renderDateTimeValueInstance ( $ event , $ value ) ; self :: renderOptionValueReadable ( $ event , $ property , $ value ) ; }
Render a property value to readable text.

@param RenderReadablePropertyValueEvent $event The event being processed.

@return void
Render a property value to readable text .