src/Contao/Subscriber/FormatModelLabelSubscriber.php
private function getFirstSorting(GroupAndSortingDefinitionInterface $sortingDefinition = null)
    {
        if (null === $sortingDefinition) {
            return '';
        }

        foreach ($sortingDefinition as $information) {
            /** @var GroupAndSortingInformationInterface $information */
            if ($information->getProperty()) {
                return $information->getProperty();
            }
        }

        return '';
    }
private function getFirstSorting(GroupAndSortingDefinitionInterface $sortingDefinition = null)
    {
        if (null === $sortingDefinition) {
            return '';
        }

        foreach ($sortingDefinition as $information) {
            /** @var GroupAndSortingInformationInterface $information */
            if ($information->getProperty()) {
                return $information->getProperty();
            }
        }

        return '';
    }
private function getFirstSorting ( GroupAndSortingDefinitionInterface $ sortingDefinition = null ) { if ( null === $ sortingDefinition ) { return '' ; } foreach ( $ sortingDefinition as $ information ) { /** @var GroupAndSortingInformationInterface $information */ if ( $ information -> getProperty ( ) ) { return $ information -> getProperty ( ) ; } } return '' ; }
Retrieve the first sorting value.

@param GroupAndSortingDefinitionInterface|null $sortingDefinition The sorting definition.

@return string
Retrieve the first sorting value .