src/Contao/View/Contao2BackendView/ActionHandler/MultipleHandler/OverrideAllHandler.php
private function process(Action $action, EnvironmentInterface $environment)
    {
        $inputProvider   = $environment->getInputProvider();
        $translator      = $environment->getTranslator();
        $editInformation = $GLOBALS['container']['dc-general.edit-information'];

        $renderInformation = new \ArrayObject();

        $propertyValueBag = new PropertyValueBag();
        foreach ($this->getOverrideProperties($action, $environment) as $property) {
            $propertyValueBag->setPropertyValue($property->getName(), $property->getDefaultValue());
        }

        if (false !== $inputProvider->hasValue('FORM_INPUTS')) {
            foreach ($inputProvider->getValue('FORM_INPUTS') as $formInput) {
                $propertyValueBag->setPropertyValue($formInput, $inputProvider->getValue($formInput));
            }
        }

        $this->invisibleUnusedProperties($action, $environment);
        $this->handleOverrideCollection($action, $renderInformation, $propertyValueBag, $environment);
        $this->renderFieldSets($action, $renderInformation, $propertyValueBag, $environment);
        $this->updateErrorInformation($renderInformation);

        if (!$editInformation->hasAnyModelError()) {
            $this->handleSubmit($action, $environment);
        }

        return $this->renderTemplate(
            $action,
            [
                'subHeadline' =>
                    $translator->translate('MSC.' . $inputProvider->getParameter('mode') . 'Selected') . ': ' .
                    $translator->translate('MSC.all.0'),
                'fieldsets'   => $renderInformation->offsetGet('fieldsets'),
                'table'       => $environment->getDataDefinition()->getName(),
                'error'       => $renderInformation->offsetGet('error'),
                'breadcrumb'  => $this->renderBreadcrumb($environment),
                'editButtons' => $this->getEditButtons($action, $environment),
                'noReload'    => (bool) $editInformation->hasAnyModelError($action, $environment)
            ]
        );
    }
private function process(Action $action, EnvironmentInterface $environment)
    {
        $inputProvider   = $environment->getInputProvider();
        $translator      = $environment->getTranslator();
        $editInformation = $GLOBALS['container']['dc-general.edit-information'];

        $renderInformation = new \ArrayObject();

        $propertyValueBag = new PropertyValueBag();
        foreach ($this->getOverrideProperties($action, $environment) as $property) {
            $propertyValueBag->setPropertyValue($property->getName(), $property->getDefaultValue());
        }

        if (false !== $inputProvider->hasValue('FORM_INPUTS')) {
            foreach ($inputProvider->getValue('FORM_INPUTS') as $formInput) {
                $propertyValueBag->setPropertyValue($formInput, $inputProvider->getValue($formInput));
            }
        }

        $this->invisibleUnusedProperties($action, $environment);
        $this->handleOverrideCollection($action, $renderInformation, $propertyValueBag, $environment);
        $this->renderFieldSets($action, $renderInformation, $propertyValueBag, $environment);
        $this->updateErrorInformation($renderInformation);

        if (!$editInformation->hasAnyModelError()) {
            $this->handleSubmit($action, $environment);
        }

        return $this->renderTemplate(
            $action,
            [
                'subHeadline' =>
                    $translator->translate('MSC.' . $inputProvider->getParameter('mode') . 'Selected') . ': ' .
                    $translator->translate('MSC.all.0'),
                'fieldsets'   => $renderInformation->offsetGet('fieldsets'),
                'table'       => $environment->getDataDefinition()->getName(),
                'error'       => $renderInformation->offsetGet('error'),
                'breadcrumb'  => $this->renderBreadcrumb($environment),
                'editButtons' => $this->getEditButtons($action, $environment),
                'noReload'    => (bool) $editInformation->hasAnyModelError($action, $environment)
            ]
        );
    }
private function process ( Action $ action , EnvironmentInterface $ environment ) { $ inputProvider = $ environment -> getInputProvider ( ) ; $ translator = $ environment -> getTranslator ( ) ; $ editInformation = $ GLOBALS [ 'container' ] [ 'dc-general.edit-information' ] ; $ renderInformation = new \ ArrayObject ( ) ; $ propertyValueBag = new PropertyValueBag ( ) ; foreach ( $ this -> getOverrideProperties ( $ action , $ environment ) as $ property ) { $ propertyValueBag -> setPropertyValue ( $ property -> getName ( ) , $ property -> getDefaultValue ( ) ) ; } if ( false !== $ inputProvider -> hasValue ( 'FORM_INPUTS' ) ) { foreach ( $ inputProvider -> getValue ( 'FORM_INPUTS' ) as $ formInput ) { $ propertyValueBag -> setPropertyValue ( $ formInput , $ inputProvider -> getValue ( $ formInput ) ) ; } } $ this -> invisibleUnusedProperties ( $ action , $ environment ) ; $ this -> handleOverrideCollection ( $ action , $ renderInformation , $ propertyValueBag , $ environment ) ; $ this -> renderFieldSets ( $ action , $ renderInformation , $ propertyValueBag , $ environment ) ; $ this -> updateErrorInformation ( $ renderInformation ) ; if ( ! $ editInformation -> hasAnyModelError ( ) ) { $ this -> handleSubmit ( $ action , $ environment ) ; } return $ this -> renderTemplate ( $ action , [ 'subHeadline' => $ translator -> translate ( 'MSC.' . $ inputProvider -> getParameter ( 'mode' ) . 'Selected' ) . ': ' . $ translator -> translate ( 'MSC.all.0' ) , 'fieldsets' => $ renderInformation -> offsetGet ( 'fieldsets' ) , 'table' => $ environment -> getDataDefinition ( ) -> getName ( ) , 'error' => $ renderInformation -> offsetGet ( 'error' ) , 'breadcrumb' => $ this -> renderBreadcrumb ( $ environment ) , 'editButtons' => $ this -> getEditButtons ( $ action , $ environment ) , 'noReload' => ( bool ) $ editInformation -> hasAnyModelError ( $ action , $ environment ) ] ) ; }
Process the override all handler.

@param Action               $action      The action.
@param EnvironmentInterface $environment The enviroment.

@return string

@SuppressWarnings(PHPMD.Superglobals)
Process the override all handler .