src/Contao/View/Contao2BackendView/ActionHandler/ParentedListViewShowAllHandler.php
private function renderParentProperty(EnvironmentInterface $environment, $property, $value)
    {
        $evaluation = $property->getExtra();

        if (\is_array($value)) {
            return \implode(', ', $value);
        }

        $isRendered = false;

        $value = $this->renderForCheckbox($property, $value, $isRendered);
        $value = $this->renderForDateTime($environment, $property, $value, $isRendered);
        $value = $this->renderReference($value, $evaluation['reference'], $isRendered);

        $options = $property->getOptions();
        if ($evaluation['isAssociative'] || \array_is_assoc($options)) {
            $value = $options[$value];
        }

        return $value;
    }
private function renderParentProperty(EnvironmentInterface $environment, $property, $value)
    {
        $evaluation = $property->getExtra();

        if (\is_array($value)) {
            return \implode(', ', $value);
        }

        $isRendered = false;

        $value = $this->renderForCheckbox($property, $value, $isRendered);
        $value = $this->renderForDateTime($environment, $property, $value, $isRendered);
        $value = $this->renderReference($value, $evaluation['reference'], $isRendered);

        $options = $property->getOptions();
        if ($evaluation['isAssociative'] || \array_is_assoc($options)) {
            $value = $options[$value];
        }

        return $value;
    }
private function renderParentProperty ( EnvironmentInterface $ environment , $ property , $ value ) { $ evaluation = $ property -> getExtra ( ) ; if ( \ is_array ( $ value ) ) { return \ implode ( ', ' , $ value ) ; } $ isRendered = false ; $ value = $ this -> renderForCheckbox ( $ property , $ value , $ isRendered ) ; $ value = $ this -> renderForDateTime ( $ environment , $ property , $ value , $ isRendered ) ; $ value = $ this -> renderReference ( $ value , $ evaluation [ 'reference' ] , $ isRendered ) ; $ options = $ property -> getOptions ( ) ; if ( $ evaluation [ 'isAssociative' ] || \ array_is_assoc ( $ options ) ) { $ value = $ options [ $ value ] ; } return $ value ; }
Render a property of the parent model.

@param EnvironmentInterface $environment The environment.
@param PropertyInterface    $property    The property.
@param mixed                $value       The value to format.

@return string
Render a property of the parent model .