src/CoreBundle/EventListener/DcGeneral/DefinitionBuilder/Contao2BackendViewDefinitionBuilder.php
private function parseListLabel(ListingConfigInterface $listing)
    {
        $providerName = $this->container->getBasicDefinition()->getDataProvider();
        if (!$listing->hasLabelFormatter($providerName)) {
            $formatter = new DefaultModelFormatterConfig();
            $listing->setLabelFormatter($providerName, $formatter);
        } else {
            $formatter = $listing->getLabelFormatter($providerName);
        }

        $renderSetting = $this->renderSettingFactory->createCollection(
            $this->metaModel,
            $this->container->getMetaModelDefinition()->getActiveRenderSetting()
        );

        $formatter->setPropertyNames(
            array_merge($formatter->getPropertyNames(), $renderSetting->getSettingNames())
        );

        $formatter->setFormat(str_repeat('%s ', count($formatter->getPropertyNames())));
    }
private function parseListLabel(ListingConfigInterface $listing)
    {
        $providerName = $this->container->getBasicDefinition()->getDataProvider();
        if (!$listing->hasLabelFormatter($providerName)) {
            $formatter = new DefaultModelFormatterConfig();
            $listing->setLabelFormatter($providerName, $formatter);
        } else {
            $formatter = $listing->getLabelFormatter($providerName);
        }

        $renderSetting = $this->renderSettingFactory->createCollection(
            $this->metaModel,
            $this->container->getMetaModelDefinition()->getActiveRenderSetting()
        );

        $formatter->setPropertyNames(
            array_merge($formatter->getPropertyNames(), $renderSetting->getSettingNames())
        );

        $formatter->setFormat(str_repeat('%s ', count($formatter->getPropertyNames())));
    }
Parse the sorting part of listing configuration.

@param ListingConfigInterface $listing The listing config.

@return void