function AutocompleteController::autocomplete1
Same name in other branches
- 8.9.x 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',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.