Skip to content
Snippets Groups Projects
Commit 97746612 authored by Merlin Axel Rutz's avatar Merlin Axel Rutz
Browse files

Issue #3204518 by stefan.korn: Change type hints in inline_entity_form.api.php...

Issue #3204518 by stefan.korn: Change type hints in inline_entity_form.api.php to align with Drupal core
parent 23cd78d5
Branches
Tags
No related merge requests found
Pipeline #73126 canceled
......@@ -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');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment