You are here

public function ILTController::membersAutocomplete in Opigno Instructor-led Trainings 3.x

Same name and namespace in other branches
  1. 8 src/Controller/ILTController.php \Drupal\opigno_ilt\Controller\ILTController::membersAutocomplete()

Returns response for the autocompletion.

Return value

\Symfony\Component\HttpFoundation\JsonResponse

1 string reference to 'ILTController::membersAutocomplete'
opigno_ilt.routing.yml in ./opigno_ilt.routing.yml
opigno_ilt.routing.yml

File

src/Controller/ILTController.php, line 91

Class

ILTController
Class ILTController.

Namespace

Drupal\opigno_ilt\Controller

Code

public function membersAutocomplete(Group $group) {
  [
    $matches,
    $default,
  ] = $this
    ->membersAutocompleteSelect($group);
  return new JsonResponse($matches);
}