AutocompleteController.php in Drupal 8
Same filename and directory in other branches
Namespace
Drupal\form_testFile
core/modules/system/tests/modules/form_test/src/AutocompleteController.phpView source
<?php
namespace Drupal\form_test;
use Symfony\Component\HttpFoundation\JsonResponse;
/**
* Defines a controller class with methods for autocompletion.
*/
class AutocompleteController {
/**
* Returns some autocompletion content.
*
* @return \Symfony\Component\HttpFoundation\JsonResponse
* A JSON response.
*/
public function autocomplete1() {
return new JsonResponse([
'key' => 'value',
]);
}
}
Classes
Name | Description |
---|---|
AutocompleteController | Defines a controller class with methods for autocompletion. |