src/Contao/View/Contao2BackendView/ActionHandler/MultipleHandler/SelectPropertyAllHandler.php
private function getCollection(DataProviderInterface $dataProvider, EnvironmentInterface $environment)
    {
        $collection = $dataProvider->getEmptyCollection();

        foreach ($environment->getDataDefinition()->getPropertiesDefinition() as $property) {
            if (!$this->isPropertyAllowed($property, $environment)) {
                continue;
            }

            $model = $dataProvider->getEmptyModel();
            $model->setID($property->getName());
            $model->setProperty(
                'name',
                $property->getLabel() ?: $property->getName()
            );
            $model->setProperty(
                'description',
                $property->getDescription() ?: $property->getName()
            );

            $this->handlePropertyFileTree($property);
            $this->handlePropertyFileTreeOrder($property, $model);

            $collection->offsetSet($collection->count(), $model);
        }

        return $collection;
    }
private function getCollection(DataProviderInterface $dataProvider, EnvironmentInterface $environment)
    {
        $collection = $dataProvider->getEmptyCollection();

        foreach ($environment->getDataDefinition()->getPropertiesDefinition() as $property) {
            if (!$this->isPropertyAllowed($property, $environment)) {
                continue;
            }

            $model = $dataProvider->getEmptyModel();
            $model->setID($property->getName());
            $model->setProperty(
                'name',
                $property->getLabel() ?: $property->getName()
            );
            $model->setProperty(
                'description',
                $property->getDescription() ?: $property->getName()
            );

            $this->handlePropertyFileTree($property);
            $this->handlePropertyFileTreeOrder($property, $model);

            $collection->offsetSet($collection->count(), $model);
        }

        return $collection;
    }
private function getCollection ( DataProviderInterface $ dataProvider , EnvironmentInterface $ environment ) { $ collection = $ dataProvider -> getEmptyCollection ( ) ; foreach ( $ environment -> getDataDefinition ( ) -> getPropertiesDefinition ( ) as $ property ) { if ( ! $ this -> isPropertyAllowed ( $ property , $ environment ) ) { continue ; } $ model = $ dataProvider -> getEmptyModel ( ) ; $ model -> setID ( $ property -> getName ( ) ) ; $ model -> setProperty ( 'name' , $ property -> getLabel ( ) ? : $ property -> getName ( ) ) ; $ model -> setProperty ( 'description' , $ property -> getDescription ( ) ? : $ property -> getName ( ) ) ; $ this -> handlePropertyFileTree ( $ property ) ; $ this -> handlePropertyFileTreeOrder ( $ property , $ model ) ; $ collection -> offsetSet ( $ collection -> count ( ) , $ model ) ; } return $ collection ; }
Return the field collection for each properties.

@param DataProviderInterface $dataProvider The field data provider.
@param EnvironmentInterface  $environment  The environment.

@return CollectionInterface
Return the field collection for each properties .