src/Contao/Dca/Builder/Legacy/LegacyDcaDataDefinitionBuilder.php
private function parseOrderProperty(PropertyInterface $property, PropertyInterface $orderProperty)
    {
        $orderWidgets = [
            'pageTree'            => 'pageTreeOrder',
            'fileTree'            => 'fileTreeOrder',
            'DcGeneralTreePicker' => 'treePickerOrder'
        ];
        if (false === \array_key_exists($property->getWidgetType(), $orderWidgets)) {
            return;
        }

        $orderProperty->setWidgetType($orderWidgets[$property->getWidgetType()]);
    }
private function parseOrderProperty(PropertyInterface $property, PropertyInterface $orderProperty)
    {
        $orderWidgets = [
            'pageTree'            => 'pageTreeOrder',
            'fileTree'            => 'fileTreeOrder',
            'DcGeneralTreePicker' => 'treePickerOrder'
        ];
        if (false === \array_key_exists($property->getWidgetType(), $orderWidgets)) {
            return;
        }

        $orderProperty->setWidgetType($orderWidgets[$property->getWidgetType()]);
    }
private function parseOrderProperty ( PropertyInterface $ property , PropertyInterface $ orderProperty ) { $ orderWidgets = [ 'pageTree' => 'pageTreeOrder' , 'fileTree' => 'fileTreeOrder' , 'DcGeneralTreePicker' => 'treePickerOrder' ] ; if ( false === \ array_key_exists ( $ property -> getWidgetType ( ) , $ orderWidgets ) ) { return ; } $ orderProperty -> setWidgetType ( $ orderWidgets [ $ property -> getWidgetType ( ) ] ) ; }
Parse the property for order and set the order widget.

@param PropertyInterface $property      The base property.
@param PropertyInterface $orderProperty The order property.

@return void
Parse the property for order and set the order widget .