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'));
    }