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

executeModelFieldUpdate() public method

Updates a single model field for this model (attribute)
public executeModelFieldUpdate ( integer $modelFieldId, array $input ) : array
$modelFieldId integer
$input array
return array
    public function executeModelFieldUpdate($modelFieldId, $input)
    {
        try {
            $field = $this->ModelManager->updateField($input['field'], $input['page']);
        } catch (ModelFieldValidationFailedException $e) {
            return $this->Response->json(['errors' => $e->getErrors()], 403);
        }
        return array('field' => $field);
    }