src/Contao/View/Contao2BackendView/TreePicker.php
private function prepareLabelWithDisplayedProperties(
        ModelFormatterConfigInterface $formatter,
        array $arguments,
        $firstSorting,
        array &$labelList
    ) {
        $definition = $this->getEnvironment()->getDataDefinition();
        $listing    = $definition->getDefinition(Contao2BackendViewDefinitionInterface::NAME)->getListingConfig();
        if (!$listing->getShowColumns()) {
            return;
        }

        $fieldList = $formatter->getPropertyNames();

        if (!\is_array($arguments)) {
            $labelList[] = [
                'colspan' => \count($fieldList),
                'class'   => 'tl_file_list col_1',
                'content' => $arguments
            ];
        } else {
            foreach ($fieldList as $j => $propertyName) {
                $labelList[] = [
                    'colspan' => 1,
                    'class'   => 'tl_file_list col_' . $j . (($propertyName === $firstSorting) ? ' ordered_by' : ''),
                    'content' => ('' !== $arguments[$propertyName]) ? $arguments[$propertyName] : '-'
                ];
            }
        }
    }
private function prepareLabelWithDisplayedProperties(
        ModelFormatterConfigInterface $formatter,
        array $arguments,
        $firstSorting,
        array &$labelList
    ) {
        $definition = $this->getEnvironment()->getDataDefinition();
        $listing    = $definition->getDefinition(Contao2BackendViewDefinitionInterface::NAME)->getListingConfig();
        if (!$listing->getShowColumns()) {
            return;
        }

        $fieldList = $formatter->getPropertyNames();

        if (!\is_array($arguments)) {
            $labelList[] = [
                'colspan' => \count($fieldList),
                'class'   => 'tl_file_list col_1',
                'content' => $arguments
            ];
        } else {
            foreach ($fieldList as $j => $propertyName) {
                $labelList[] = [
                    'colspan' => 1,
                    'class'   => 'tl_file_list col_' . $j . (($propertyName === $firstSorting) ? ' ordered_by' : ''),
                    'content' => ('' !== $arguments[$propertyName]) ? $arguments[$propertyName] : '-'
                ];
            }
        }
    }
private function prepareLabelWithDisplayedProperties ( ModelFormatterConfigInterface $ formatter , array $ arguments , $ firstSorting , array & $ labelList ) { $ definition = $ this -> getEnvironment ( ) -> getDataDefinition ( ) ; $ listing = $ definition -> getDefinition ( Contao2BackendViewDefinitionInterface :: NAME ) -> getListingConfig ( ) ; if ( ! $ listing -> getShowColumns ( ) ) { return ; } $ fieldList = $ formatter -> getPropertyNames ( ) ; if ( ! \ is_array ( $ arguments ) ) { $ labelList [ ] = [ 'colspan' => \ count ( $ fieldList ) , 'class' => 'tl_file_list col_1' , 'content' => $ arguments ] ; } else { foreach ( $ fieldList as $ j => $ propertyName ) { $ labelList [ ] = [ 'colspan' => 1 , 'class' => 'tl_file_list col_' . $ j . ( ( $ propertyName === $ firstSorting ) ? ' ordered_by' : '' ) , 'content' => ( '' !== $ arguments [ $ propertyName ] ) ? $ arguments [ $ propertyName ] : '-' ] ; } } }
Prepare labels for display with properties.

@param ModelFormatterConfigInterface $formatter    The model formatter.
@param array                         $arguments    The model label arguments.
@param string|bool                   $firstSorting The first sorting.
@param array                         $labelList    The label list.

@return void
Prepare labels for display with properties .