src/Contao/View/Contao2BackendView/ActionHandler/AbstractListShowAllHandler.php
private function getSortingColumns($sortingDefinition)
    {
        if (null === $sortingDefinition) {
            return [];
        }

        $sortingColumns = [];
        /** @var GroupAndSortingDefinitionInterface $sortingDefinition */
        foreach ($sortingDefinition as $information) {
            /** @var GroupAndSortingInformationInterface $information */
            if ($information->getProperty()) {
                $sortingColumns[] = $information->getProperty();
            }
        }

        return $sortingColumns;
    }
private function getSortingColumns($sortingDefinition)
    {
        if (null === $sortingDefinition) {
            return [];
        }

        $sortingColumns = [];
        /** @var GroupAndSortingDefinitionInterface $sortingDefinition */
        foreach ($sortingDefinition as $information) {
            /** @var GroupAndSortingInformationInterface $information */
            if ($information->getProperty()) {
                $sortingColumns[] = $information->getProperty();
            }
        }

        return $sortingColumns;
    }
private function getSortingColumns ( $ sortingDefinition ) { if ( null === $ sortingDefinition ) { return [ ] ; } $ sortingColumns = [ ] ; /** @var GroupAndSortingDefinitionInterface $sortingDefinition */ foreach ( $ sortingDefinition as $ information ) { /** @var GroupAndSortingInformationInterface $information */ if ( $ information -> getProperty ( ) ) { $ sortingColumns [ ] = $ information -> getProperty ( ) ; } } return $ sortingColumns ; }
Determine the current sorting columns.

@param GroupAndSortingDefinitionInterface|null $sortingDefinition The sorting definition.

@return array
Determine the current sorting columns .