Skip to content

Commit

Permalink
Replace form alter hook with D10 version (#4006)
Browse files Browse the repository at this point in the history
  • Loading branch information
jastraat authored Aug 28, 2023
1 parent 2679fab commit d12af26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/json_form_widget/json_form_widget.module
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ function _json_form_widget_build_count_property(array $button_element): array {
}

/**
* Implements hook_field_widget_multivalue_form_alter().
* Implements hook_field_widget_complete_form_alter().
*
* Set json_form_widget flag for later.
*/
function json_form_widget_field_widget_multivalue_form_alter(array $elements, FormStateInterface $form_state, array $context) {
function json_form_widget_field_widget_complete_form_alter(&$field_widget_complete_form, FormStateInterface $form_state, $context) {
if ($context['widget'] instanceof JsonFormWidget) {
$form_state->has_json_form_widget = TRUE;
}
Expand Down

0 comments on commit d12af26

Please sign in to comment.