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

        if (!\is_array($arguments)) {
            $string = $arguments;
        } else {
            $string = \vsprintf($label, $arguments);
        }

        if (($maxLength = null !== $formatter->getMaxLength()) && \strlen($string) > $maxLength) {
            $string = \substr($string, 0, $maxLength);
        }

        $labelList[] = [
            'colspan' => null,
            'class'   => 'tl_file_list',
            'content' => $string
        ];
    }
private function prepareLabelWithOutDisplayedProperties(
        ModelFormatterConfigInterface $formatter,
        array $arguments,
        $label,
        array &$labelList
    ) {
        $definition = $this->getEnvironment()->getDataDefinition();
        $listing    = $definition->getDefinition(Contao2BackendViewDefinitionInterface::NAME)->getListingConfig();
        if ($listing->getShowColumns()) {
            return;
        }

        if (!\is_array($arguments)) {
            $string = $arguments;
        } else {
            $string = \vsprintf($label, $arguments);
        }

        if (($maxLength = null !== $formatter->getMaxLength()) && \strlen($string) > $maxLength) {
            $string = \substr($string, 0, $maxLength);
        }

        $labelList[] = [
            'colspan' => null,
            'class'   => 'tl_file_list',
            'content' => $string
        ];
    }
private function prepareLabelWithOutDisplayedProperties ( ModelFormatterConfigInterface $ formatter , array $ arguments , $ label , array & $ labelList ) { $ definition = $ this -> getEnvironment ( ) -> getDataDefinition ( ) ; $ listing = $ definition -> getDefinition ( Contao2BackendViewDefinitionInterface :: NAME ) -> getListingConfig ( ) ; if ( $ listing -> getShowColumns ( ) ) { return ; } if ( ! \ is_array ( $ arguments ) ) { $ string = $ arguments ; } else { $ string = \ vsprintf ( $ label , $ arguments ) ; } if ( ( $ maxLength = null !== $ formatter -> getMaxLength ( ) ) && \ strlen ( $ string ) > $ maxLength ) { $ string = \ substr ( $ string , 0 , $ maxLength ) ; } $ labelList [ ] = [ 'colspan' => null , 'class' => 'tl_file_list' , 'content' => $ string ] ; }
Prepare labels for display without properties.

@param ModelFormatterConfigInterface $formatter The model formatter.
@param array                         $arguments The model label arguments.
@param string                        $label     The label for format.
@param array                         $labelList The label list.

@return void
Prepare labels for display without properties .