src/Contao/Subscriber/FormatModelLabelSubscriber.php
private function renderWithColumns($propertyNames, $args, $firstSorting)
    {
        $label = [];
        if (!\is_array($args)) {
            // @codingStandardsIgnoreStart
            @\trigger_error('Warning, column layout without arguments will not be supported.', E_USER_DEPRECATED);
            // @codingStandardsIgnoreEnd
            $label[] = [
                'colspan' => \count($propertyNames),
                'class'   => 'tl_file_list col_all',
                'content' => $args
            ];
        } else {
            foreach ($propertyNames as $propertyName) {
                $class = 'tl_file_list col_' . $propertyName;
                if ($firstSorting === $propertyName) {
                    $class .= ' ordered_by';
                }

                $label[] = [
                    'colspan' => 1,
                    'class'   => $class,
                    'content' => $args[$propertyName] ?: '-'
                ];
            }
        }

        return $label;
    }
private function renderWithColumns($propertyNames, $args, $firstSorting)
    {
        $label = [];
        if (!\is_array($args)) {
            // @codingStandardsIgnoreStart
            @\trigger_error('Warning, column layout without arguments will not be supported.', E_USER_DEPRECATED);
            // @codingStandardsIgnoreEnd
            $label[] = [
                'colspan' => \count($propertyNames),
                'class'   => 'tl_file_list col_all',
                'content' => $args
            ];
        } else {
            foreach ($propertyNames as $propertyName) {
                $class = 'tl_file_list col_' . $propertyName;
                if ($firstSorting === $propertyName) {
                    $class .= ' ordered_by';
                }

                $label[] = [
                    'colspan' => 1,
                    'class'   => $class,
                    'content' => $args[$propertyName] ?: '-'
                ];
            }
        }

        return $label;
    }
private function renderWithColumns ( $ propertyNames , $ args , $ firstSorting ) { $ label = [ ] ; if ( ! \ is_array ( $ args ) ) { // @codingStandardsIgnoreStart @ \ trigger_error ( 'Warning, column layout without arguments will not be supported.' , E_USER_DEPRECATED ) ; // @codingStandardsIgnoreEnd $ label [ ] = [ 'colspan' => \ count ( $ propertyNames ) , 'class' => 'tl_file_list col_all' , 'content' => $ args ] ; } else { foreach ( $ propertyNames as $ propertyName ) { $ class = 'tl_file_list col_' . $ propertyName ; if ( $ firstSorting === $ propertyName ) { $ class .= ' ordered_by' ; } $ label [ ] = [ 'colspan' => 1 , 'class' => $ class , 'content' => $ args [ $ propertyName ] ? : '-' ] ; } } return $ label ; }
Render for column layout.

@param string[] $propertyNames The properties.
@param string[] $args          The rendered arguments.
@param string   $firstSorting  The sorting column.

@return array
Render for column layout .