public function AutocompleteController::autocomplete1 in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 23 - Contains \Drupal\form_test\AutocompleteController.
Class
- AutocompleteController
- Defines a controller class with methods for autocompletion.
Namespace
Drupal\form_testCode
public function autocomplete1() {
return new JsonResponse(array(
'key' => 'value',
));
}