public function AutocompleteController::autocomplete1 in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/form_test/src/AutocompleteController.php \Drupal\form_test\AutocompleteController::autocomplete1()
- 9 core/modules/system/tests/modules/form_test/src/AutocompleteController.php \Drupal\form_test\AutocompleteController::autocomplete1()
Returns some autocompletion content.
Return value
\Symfony\Component\HttpFoundation\JsonResponse A JSON response.
1 string reference to 'AutocompleteController::autocomplete1'
- form_test.routing.yml in core/
modules/ system/ tests/ modules/ form_test/ form_test.routing.yml - core/modules/system/tests/modules/form_test/form_test.routing.yml
File
- core/
modules/ system/ tests/ modules/ form_test/ src/ AutocompleteController.php, line 18
Class
- AutocompleteController
- Defines a controller class with methods for autocompletion.
Namespace
Drupal\form_testCode
public function autocomplete1() {
return new JsonResponse([
'key' => 'value',
]);
}