src/Contao/View/Contao2BackendView/ActionHandler/MultipleHandler/EditAllHandler.php
private function handleEditCollection(
        Action $action,
        PropertyValueBagInterface $editPropertyValuesBag,
        ModelInterface $model,
        \ArrayObject $renderInformation,
        EnvironmentInterface $environment
    ) {
        $dataProvider     = $environment->getDataProvider($model->getProviderName());
        $editCollection   = $dataProvider->getEmptyCollection();
        $revertCollection = $dataProvider->getEmptyCollection();

        $editCollection->push($model);

        $revertModel = clone $model;
        $revertModel->setId($model->getId());
        $revertCollection->push($model);

        $this->editCollection($action, $editCollection, $editPropertyValuesBag, $renderInformation, $environment);

        $this->revertValuesByErrors($action, $revertCollection, $environment);
    }
private function handleEditCollection(
        Action $action,
        PropertyValueBagInterface $editPropertyValuesBag,
        ModelInterface $model,
        \ArrayObject $renderInformation,
        EnvironmentInterface $environment
    ) {
        $dataProvider     = $environment->getDataProvider($model->getProviderName());
        $editCollection   = $dataProvider->getEmptyCollection();
        $revertCollection = $dataProvider->getEmptyCollection();

        $editCollection->push($model);

        $revertModel = clone $model;
        $revertModel->setId($model->getId());
        $revertCollection->push($model);

        $this->editCollection($action, $editCollection, $editPropertyValuesBag, $renderInformation, $environment);

        $this->revertValuesByErrors($action, $revertCollection, $environment);
    }
private function handleEditCollection ( Action $ action , PropertyValueBagInterface $ editPropertyValuesBag , ModelInterface $ model , \ ArrayObject $ renderInformation , EnvironmentInterface $ environment ) { $ dataProvider = $ environment -> getDataProvider ( $ model -> getProviderName ( ) ) ; $ editCollection = $ dataProvider -> getEmptyCollection ( ) ; $ revertCollection = $ dataProvider -> getEmptyCollection ( ) ; $ editCollection -> push ( $ model ) ; $ revertModel = clone $ model ; $ revertModel -> setId ( $ model -> getId ( ) ) ; $ revertCollection -> push ( $ model ) ; $ this -> editCollection ( $ action , $ editCollection , $ editPropertyValuesBag , $ renderInformation , $ environment ) ; $ this -> revertValuesByErrors ( $ action , $ revertCollection , $ environment ) ; }
Handle edit collection of models.

@param Action                    $action                The action.
@param PropertyValueBagInterface $editPropertyValuesBag The property values.
@param ModelInterface            $model                 The model.
@param \ArrayObject              $renderInformation     The render information.
@param EnvironmentInterface      $environment           The environment.

@return void
Handle edit collection of models .