function hook_inline_entity_form_reference_form_alter in Inline Entity Form 8
Same name and namespace in other branches
- 7 inline_entity_form.api.php \hook_inline_entity_form_reference_form_alter()
Perform alterations before the reference form is included in the IEF widget.
The reference form is used to add existing entities through an autocomplete field
Parameters
array $reference_form: Nested array of form elements that comprise the reference form.
\Drupal\Core\Form\FormStateInterface $form_state: The form state of the parent form.
1 invocation of hook_inline_entity_form_reference_form_alter()
- inline_entity_form_reference_form in ./
inline_entity_form.module - Provides the form for adding existing entities through an autocomplete field.
File
- ./
inline_entity_form.api.php, line 33 - Hooks provided by the Inline Entity Form module.
Code
function hook_inline_entity_form_reference_form_alter(array &$reference_form, FormStateInterface &$form_state) {
$reference_form['entity_id']['#description'] = t('New autocomplete description');
}