|
|
@ -13,7 +13,7 @@ use Drupal\bibcite_footnotes\CitationTools; |
|
|
|
use Drupal\bibcite_footnotes\Plugin\Filter\ReferenceFootnotesFilter; |
|
|
|
use Drupal\bibcite_footnotes\Plugin\Filter\ReferenceFootnotesFilter; |
|
|
|
use Drupal\field\Entity\FieldConfig; |
|
|
|
use Drupal\field\Entity\FieldConfig; |
|
|
|
use Drupal\core\Ajax\SettingsCommand; |
|
|
|
use Drupal\core\Ajax\SettingsCommand; |
|
|
|
|
|
|
|
use Symfony\Component\HttpFoundation\Request; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Implements hook_theme(). |
|
|
|
* Implements hook_theme(). |
|
|
@ -212,7 +212,8 @@ function bibcite_footnotes_preprocess_bibcite_footnote_link(&$variables) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function bibcite_footnotes_form_node_form_alter(&$form, FormStateInterface &$form_state) { |
|
|
|
function bibcite_footnotes_inline_entity_form_entity_form_alter(&$form, FormStateInterface &$form_state) { |
|
|
|
|
|
|
|
$form['#save_entity'] = TRUE; |
|
|
|
$ief = $form_state->get('inline_entity_form'); |
|
|
|
$ief = $form_state->get('inline_entity_form'); |
|
|
|
if ($ief) { |
|
|
|
if ($ief) { |
|
|
|
$serializer = \Drupal::service('serializer'); |
|
|
|
$serializer = \Drupal::service('serializer'); |
|
|
@ -260,4 +261,3 @@ function bibcite_footnotes_form_node_form_alter(&$form, FormStateInterface &$for |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|