src/Contao/View/Contao2BackendView/TreePicker.php
private function addOrderFieldToTemplate(ContaoBackendViewTemplate $template)
    {
        if (!$this->orderField) {
            return;
        }

        $translator = $this->getEnvironment()->getTranslator();

        $template
            ->set('hasOrder', true)
            ->set('orderId', $this->orderField)
            ->set('orderName', $this->orderName)
            ->set('orderValue', \implode(',', (array) $this->value))
            ->set('changeSelection', $translator->translate('MSC.changeSelection'))
            ->set('dragItemsHint', $translator->translate('MSC.dragItemsHint'));
    }
private function addOrderFieldToTemplate(ContaoBackendViewTemplate $template)
    {
        if (!$this->orderField) {
            return;
        }

        $translator = $this->getEnvironment()->getTranslator();

        $template
            ->set('hasOrder', true)
            ->set('orderId', $this->orderField)
            ->set('orderName', $this->orderName)
            ->set('orderValue', \implode(',', (array) $this->value))
            ->set('changeSelection', $translator->translate('MSC.changeSelection'))
            ->set('dragItemsHint', $translator->translate('MSC.dragItemsHint'));
    }
private function addOrderFieldToTemplate ( ContaoBackendViewTemplate $ template ) { if ( ! $ this -> orderField ) { return ; } $ translator = $ this -> getEnvironment ( ) -> getTranslator ( ) ; $ template -> set ( 'hasOrder' , true ) -> set ( 'orderId' , $ this -> orderField ) -> set ( 'orderName' , $ this -> orderName ) -> set ( 'orderValue' , \ implode ( ',' , ( array ) $ this -> value ) ) -> set ( 'changeSelection' , $ translator -> translate ( 'MSC.changeSelection' ) ) -> set ( 'dragItemsHint' , $ translator -> translate ( 'MSC.dragItemsHint' ) ) ; }
Add the order field to the template, if the picker has order.

@param ContaoBackendViewTemplate $template The template.

@return void
Add the order field to the template if the picker has order .