private function processInput($widgetManager)
    {
        $input = $this->environment->getInputProvider();

        if ($input->getValue('FORM_SUBMIT') === $this->definition->getName()) {
            $propertyValues = new PropertyValueBag();
            $propertyNames  = array_intersect(
                $this->definition->getPropertiesDefinition()->getPropertyNames(),
                (array) $input->getValue('FORM_INPUTS')
            );

            // Process input and update changed properties.
            foreach ($propertyNames as $propertyName) {
                $propertyValue = $input->hasValue($propertyName) ? $input->getValue($propertyName, true) : null;
                $propertyValues->setPropertyValue($propertyName, $propertyValue);
            }

            $widgetManager->processInput($propertyValues);

            return $propertyValues;
        }

        return null;
    }
private function processInput($widgetManager)
    {
        $input = $this->environment->getInputProvider();

        if ($input->getValue('FORM_SUBMIT') === $this->definition->getName()) {
            $propertyValues = new PropertyValueBag();
            $propertyNames  = array_intersect(
                $this->definition->getPropertiesDefinition()->getPropertyNames(),
                (array) $input->getValue('FORM_INPUTS')
            );

            // Process input and update changed properties.
            foreach ($propertyNames as $propertyName) {
                $propertyValue = $input->hasValue($propertyName) ? $input->getValue($propertyName, true) : null;
                $propertyValues->setPropertyValue($propertyName, $propertyValue);
            }

            $widgetManager->processInput($propertyValues);

            return $propertyValues;
        }

        return null;
    }
private function processInput ( $ widgetManager ) { $ input = $ this -> environment -> getInputProvider ( ) ; if ( $ input -> getValue ( 'FORM_SUBMIT' ) === $ this -> definition -> getName ( ) ) { $ propertyValues = new PropertyValueBag ( ) ; $ propertyNames = array_intersect ( $ this -> definition -> getPropertiesDefinition ( ) -> getPropertyNames ( ) , ( array ) $ input -> getValue ( 'FORM_INPUTS' ) ) ; // Process input and update changed properties. foreach ( $ propertyNames as $ propertyName ) { $ propertyValue = $ input -> hasValue ( $ propertyName ) ? $ input -> getValue ( $ propertyName , true ) : null ; $ propertyValues -> setPropertyValue ( $ propertyName , $ propertyValue ) ; } $ widgetManager -> processInput ( $ propertyValues ) ; return $ propertyValues ; } return null ; }
Process input and return all modified properties or null if there is no input.

@param WidgetManager $widgetManager The widget manager in use.

@return null|PropertyValueBag
Process input and return all modified properties or null if there is no input .