Tripal
|
Public Member Functions | |
handleAutocomplete (Request $request, int $count=5, int $type_id=0) | |
Static Public Member Functions | |
static | getProjectId (string $project) |
static | getProjectName (int $project) |
Controller, Chado Project Autocomplete.
|
static |
Fetch the project id number, given a project name value.
string | $project | Project name value. |
|
static |
Fetch the project name, given a project id number.
int | $project | Project id number value. |
Drupal\tripal_chado\Controller\ChadoProjectAutocompleteController::handleAutocomplete | ( | Request | $request, |
int | $count = 5 , |
||
int | $type_id = 0 |
||
) |
Controller method, autocomplete project name.
Request | request | |
int | $count | Desired number of matching names to suggest. Default to 5 items. Must be declared in autocomplete route parameter i.e. ['count' => 5]. |
int | $type_id | Project type set in projectprop.type_id to restrict projects to specific type. Default to 0, return projects regardless of type. Must be declared in autocomplete route parameter i.e. ['type_id' => 0]. |