Same filename and directory in other branches
- 8.9.x core/modules/system/tests/modules/form_test/src/AutocompleteController.php
- 9 core/modules/system/tests/modules/form_test/src/AutocompleteController.php
Namespace
Drupal\form_test
File
core/modules/system/tests/modules/form_test/src/AutocompleteController.php
View source
<?php
namespace Drupal\form_test;
use Symfony\Component\HttpFoundation\JsonResponse;
class AutocompleteController {
public function delayed_autocomplete() {
sleep(1);
return new JsonResponse([
[
'value' => 'value',
'label' => 'label',
],
]);
}
}
Classes