diff --git a/core/modules/taxonomy/lib/Drupal/taxonomy/Controller/TermAutocompleteController.php b/core/modules/taxonomy/lib/Drupal/taxonomy/Controller/TermAutocompleteController.php index f6bbf21..844ccb0 100644 --- a/core/modules/taxonomy/lib/Drupal/taxonomy/Controller/TermAutocompleteController.php +++ b/core/modules/taxonomy/lib/Drupal/taxonomy/Controller/TermAutocompleteController.php @@ -144,10 +144,9 @@ public function autocomplete(Request $request, $entity_type, $field_name) { * @param \Drupal\taxonomy\VocabularyInterface $taxonomy_vocabulary * The vocabulary to filter by. * - * @return \Symfony\Component\HttpFoundation\JsonResponse|\Symfony\Component\HttpFoundation\Response - * When valid field name is specified, a JSON response containing the - * autocomplete suggestions for taxonomy terms. Otherwise a normal response - * containing an error message. + * @return \Symfony\Component\HttpFoundation\JsonResponse + * A JSON response containing the autocomplete suggestions for taxonomy + * terms. */ public function autocompletePerVid(Request $request, VocabularyInterface $taxonomy_vocabulary) { // A comma-separated list of term names entered in the autocomplete form diff --git a/core/modules/views/includes/ajax.inc b/core/modules/views/includes/ajax.inc index c3b493e..788d1c1 100644 --- a/core/modules/views/includes/ajax.inc +++ b/core/modules/views/includes/ajax.inc @@ -5,16 +5,9 @@ * Handles the server side AJAX interactions of Views. */ -use Symfony\Component\HttpFoundation\JsonResponse; use Drupal\views\Ajax\HighlightCommand; use Drupal\views\Ajax\SetFormCommand; -use Drupal\Core\Ajax\ReplaceCommand; -use Drupal\views\Ajax\ScrollTopCommand; -use Drupal\views\Ajax\ViewAjaxResponse; use Drupal\Core\Ajax\AjaxResponse; -use Drupal\Component\Utility\Tags; -use Drupal\Component\Utility\Unicode; -use Drupal\Component\Utility\String; /** * @defgroup views_ajax Views AJAX library