class AutocompleteController 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
Defines a controller class with methods for autocompletion.
Hierarchy
- class \Drupal\form_test\AutocompleteController
Expanded class hierarchy of AutocompleteController
File
- core/
modules/ system/ tests/ modules/ form_test/ src/ AutocompleteController.php, line 15 - Contains \Drupal\form_test\AutocompleteController.
Namespace
Drupal\form_testView source
class AutocompleteController {
/**
* Returns some autocompletion content.
*
* @return \Symfony\Component\HttpFoundation\JsonResponse
* A JSON response.
*/
public function autocomplete1() {
return new JsonResponse(array(
'key' => 'value',
));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AutocompleteController:: |
public | function | Returns some autocompletion content. |