Skip to content

Commit

Permalink
fix for deprecated hook hook_field_widget_form_alter (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
divya-intelli authored Jun 26, 2023
1 parent ba7f0bf commit dcda03d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/apigee_m10n_add_credit/apigee_m10n_add_credit.module
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ function apigee_m10n_add_credit_field_info_alter(&$info) {
}

/**
* Implements hook_field_widget_form_alter().
* Implements hook_field_widget_single_element_form_alter().
*/
function apigee_m10n_add_credit_field_widget_form_alter(&$element, FormStateInterface $form_state, $context) {
function apigee_m10n_add_credit_field_widget_single_element_form_alter(&$element, FormStateInterface $form_state, $context) {
\Drupal::service('apigee_m10n.add_credit')->fieldWidgetFormAlter($element, $form_state, $context);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function inlineEntityFormTableFieldsAlter(&$fields, $context);
public function fieldInfoAlter(&$info);

/**
* Handles `hook_field_widget_form_alter` for the `apigee_m10n_add_credit` module.
* Handles `hook_field_widget_single_element_form_alter` for the `apigee_m10n_add_credit` module.
*
* @param array $element
* The field widget form element as constructed by
Expand Down

0 comments on commit dcda03d

Please sign in to comment.