You are here

public function ParseNameWidget::ajaxParseName in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_entity/src/Plugin/Field/FieldWidget/ParseNameWidget.php \Drupal\bibcite_entity\Plugin\Field\FieldWidget\ParseNameWidget::ajaxParseName()

Ajax widget submit callback for the "Parse" button.

Parameters

array $form: Form array.

\Drupal\Core\Form\FormStateInterface $form_state: Form state object.

Return value

\Drupal\Core\Ajax\AjaxResponse|array Ajax Response.

File

modules/bibcite_entity/src/Plugin/Field/FieldWidget/ParseNameWidget.php, line 106

Class

ParseNameWidget
Plugin implementation of the 'bibcite_parse_name' widget.

Namespace

Drupal\bibcite_entity\Plugin\Field\FieldWidget

Code

public function ajaxParseName(array &$form, FormStateInterface $form_state) {

  // Just refresh the whole form.
  return $form;
}