function bibcite_entity_form_entity_form_display_edit_form_alter in Bibliography & Citation 8
Same name and namespace in other branches
- 2.0.x modules/bibcite_entity/bibcite_entity.module \bibcite_entity_form_entity_form_display_edit_form_alter()
Implements hook_form_entity_form_display_edit_form_alter().
Override fields titles.
File
- modules/
bibcite_entity/ bibcite_entity.module, line 473 - Module hooks.
Code
function bibcite_entity_form_entity_form_display_edit_form_alter(&$form, FormStateInterface $form_state, $form_id) {
if ($form['#entity_type'] == 'bibcite_reference') {
$bundle_id = $form['#bundle'];
$overrider = \Drupal::service('bibcite.ui_override_provider');
$overrider
->referenceDisplayFormFieldsOverride($form, $bundle_id);
}
}