src/View/ActionHandler/AbstractPropertyOverrideEditAllHandler.php
protected function restoreInputValues(
        Action $action,
        ModelInterface $model,
        PropertyValueBagInterface $propertyValueBag,
        array $inputValues,
        EnvironmentInterface $environment
    ) {
        $editProperties = $this->getEditPropertiesByModelId($action, ModelId::fromModel($model), $environment);
        if (!$editProperties) {
            return;
        }

        $inputProvider = $environment->getInputProvider();

        unset($_POST);
        foreach (\array_keys($inputValues) as $postName) {
            $inputProvider->setValue($postName, $inputValues[$postName]);
        }

        foreach (\array_keys($editProperties) as $editedPropertyName) {
            $propertyValueBag->setPropertyValue($editedPropertyName, $model->getProperty($editedPropertyName));
        }
    }
protected function restoreInputValues(
        Action $action,
        ModelInterface $model,
        PropertyValueBagInterface $propertyValueBag,
        array $inputValues,
        EnvironmentInterface $environment
    ) {
        $editProperties = $this->getEditPropertiesByModelId($action, ModelId::fromModel($model), $environment);
        if (!$editProperties) {
            return;
        }

        $inputProvider = $environment->getInputProvider();

        unset($_POST);
        foreach (\array_keys($inputValues) as $postName) {
            $inputProvider->setValue($postName, $inputValues[$postName]);
        }

        foreach (\array_keys($editProperties) as $editedPropertyName) {
            $propertyValueBag->setPropertyValue($editedPropertyName, $model->getProperty($editedPropertyName));
        }
    }
protected function restoreInputValues ( Action $ action , ModelInterface $ model , PropertyValueBagInterface $ propertyValueBag , array $ inputValues , EnvironmentInterface $ environment ) { $ editProperties = $ this -> getEditPropertiesByModelId ( $ action , ModelId :: fromModel ( $ model ) , $ environment ) ; if ( ! $ editProperties ) { return ; } $ inputProvider = $ environment -> getInputProvider ( ) ; unset ( $ _POST ) ; foreach ( \ array_keys ( $ inputValues ) as $ postName ) { $ inputProvider -> setValue ( $ postName , $ inputValues [ $ postName ] ) ; } foreach ( \ array_keys ( $ editProperties ) as $ editedPropertyName ) { $ propertyValueBag -> setPropertyValue ( $ editedPropertyName , $ model -> getProperty ( $ editedPropertyName ) ) ; } }
Restore input values.

@param Action                    $action           The action.
@param ModelInterface            $model            The model.
@param PropertyValueBagInterface $propertyValueBag The property value bag.
@param array                     $inputValues      The input values.
@param EnvironmentInterface      $environment      The environment.

@return void

@SuppressWarnings(PHPMD.Superglobals)
Restore input values .