Devise\Pages\Models\ModelsResponseHandler::executeModelFieldsUpdate PHP Method

executeModelFieldsUpdate() public method

Loops over all fields for this model and updates the model with new values (model)
public executeModelFieldsUpdate ( array $input ) : array
$input array
return array
    public function executeModelFieldsUpdate($input)
    {
        try {
            $fields = $this->ModelManager->updateFields($input['fields'], $input['page']);
        } catch (ModelFieldValidationFailedException $e) {
            return $this->Response->json(['errors' => $e->getErrors()], 403);
        }
        return array('fields' => $fields);
    }