src/Contao/Event/Subscriber.php
private static function renderArrayReadable(RenderReadablePropertyValueEvent $event, $value)
    {
        if (!\is_array($value) || (null !== $event->getRendered())) {
            return;
        }

        foreach ($value as $kk => $vv) {
            if (\is_array($vv)) {
                $vals       = \array_values($vv);
                $value[$kk] = $vals[0] . ' (' . $vals[1] . ')';
            }
        }

        $event->setRendered(\implode(', ', $value));
    }
private static function renderArrayReadable(RenderReadablePropertyValueEvent $event, $value)
    {
        if (!\is_array($value) || (null !== $event->getRendered())) {
            return;
        }

        foreach ($value as $kk => $vv) {
            if (\is_array($vv)) {
                $vals       = \array_values($vv);
                $value[$kk] = $vals[0] . ' (' . $vals[1] . ')';
            }
        }

        $event->setRendered(\implode(', ', $value));
    }
private static function renderArrayReadable ( RenderReadablePropertyValueEvent $ event , $ value ) { if ( ! \ is_array ( $ value ) || ( null !== $ event -> getRendered ( ) ) ) { return ; } foreach ( $ value as $ kk => $ vv ) { if ( \ is_array ( $ vv ) ) { $ vals = \ array_values ( $ vv ) ; $ value [ $ kk ] = $ vals [ 0 ] . ' (' . $ vals [ 1 ] . ')' ; } } $ event -> setRendered ( \ implode ( ', ' , $ value ) ) ; }
Render an array as readable property value.

@param RenderReadablePropertyValueEvent $event The event to store the value to.
@param array                            $value The array to render.

@return void
Render an array as readable property value .