src/Contao/Dca/Builder/Legacy/LegacyDcaDataDefinitionBuilder.php
protected function parseListing(ContainerInterface $container, Contao2BackendViewDefinitionInterface $view)
    {
        $listing = $view->getListingConfig();
        $listDca = $this->getFromDca('list');

        if ((null === $listing->getRootLabel()) && (null !== ($label = $this->getFromDca('config/label')))) {
            $listing->setRootLabel($label);
        }

        if ((null === $listing->getRootIcon()) && (null !== ($icon = $this->getFromDca('config/icon')))) {
            $listing->setRootIcon($icon);
        }

        // Cancel if no list configuration found.
        if (!$listDca) {
            return [];
        }

        $parsedProperties = $this->parseListSorting($listing, $listDca);
        $this->parseListLabel($container, $listing, $listDca);

        return $parsedProperties;
    }
protected function parseListing(ContainerInterface $container, Contao2BackendViewDefinitionInterface $view)
    {
        $listing = $view->getListingConfig();
        $listDca = $this->getFromDca('list');

        if ((null === $listing->getRootLabel()) && (null !== ($label = $this->getFromDca('config/label')))) {
            $listing->setRootLabel($label);
        }

        if ((null === $listing->getRootIcon()) && (null !== ($icon = $this->getFromDca('config/icon')))) {
            $listing->setRootIcon($icon);
        }

        // Cancel if no list configuration found.
        if (!$listDca) {
            return [];
        }

        $parsedProperties = $this->parseListSorting($listing, $listDca);
        $this->parseListLabel($container, $listing, $listDca);

        return $parsedProperties;
    }
protected function parseListing ( ContainerInterface $ container , Contao2BackendViewDefinitionInterface $ view ) { $ listing = $ view -> getListingConfig ( ) ; $ listDca = $ this -> getFromDca ( 'list' ) ; if ( ( null === $ listing -> getRootLabel ( ) ) && ( null !== ( $ label = $ this -> getFromDca ( 'config/label' ) ) ) ) { $ listing -> setRootLabel ( $ label ) ; } if ( ( null === $ listing -> getRootIcon ( ) ) && ( null !== ( $ icon = $ this -> getFromDca ( 'config/icon' ) ) ) ) { $ listing -> setRootIcon ( $ icon ) ; } // Cancel if no list configuration found. if ( ! $ listDca ) { return [ ] ; } $ parsedProperties = $ this -> parseListSorting ( $ listing , $ listDca ) ; $ this -> parseListLabel ( $ container , $ listing , $ listDca ) ; return $ parsedProperties ; }
Parse the listing configuration.

@param ContainerInterface                    $container The container where the data shall be stored.
@param Contao2BackendViewDefinitionInterface $view      The view information for the backend view.

@return array
Parse the listing configuration .