From 97746612c7ea5ee740a1e2b68634bd4d97f64a65 Mon Sep 17 00:00:00 2001 From: Merlin <merlin@geeks4change.net> Date: Sun, 7 Jan 2024 22:45:48 +0100 Subject: [PATCH] Issue #3204518 by stefan.korn: Change type hints in inline_entity_form.api.php to align with Drupal core --- inline_entity_form.api.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/inline_entity_form.api.php b/inline_entity_form.api.php index ae3d5672..db7111bb 100644 --- a/inline_entity_form.api.php +++ b/inline_entity_form.api.php @@ -10,10 +10,10 @@ * * @param array $entity_form * Nested array of form elements that comprise the entity form. - * @param \Drupal\Core\Form\FormStateInterface $form_state + * @param $form_state * The form state of the parent form. */ -function hook_inline_entity_form_entity_form_alter(array &$entity_form, FormStateInterface &$form_state) { +function hook_inline_entity_form_entity_form_alter(array &$entity_form, \Drupal\Core\Form\FormStateInterface &$form_state) { if ($entity_form['#entity_type'] == 'commerce_line_item') { $entity_form['quantity']['#description'] = t('New quantity description.'); } @@ -27,10 +27,10 @@ function hook_inline_entity_form_entity_form_alter(array &$entity_form, FormStat * * @param array $reference_form * Nested array of form elements that comprise the reference form. - * @param \Drupal\Core\Form\FormStateInterface $form_state + * @param $form_state * The form state of the parent form. */ -function hook_inline_entity_form_reference_form_alter(array &$reference_form, FormStateInterface &$form_state) { +function hook_inline_entity_form_reference_form_alter(array &$reference_form, \Drupal\Core\Form\FormStateInterface &$form_state) { $reference_form['entity_id']['#description'] = t('New autocomplete description'); } -- GitLab