protected function Search::urlRouteParameters in Search API Autocomplete 8
Gets an array of placeholders for this entity.
Individual entity classes may override this method to add additional placeholders if desired. If so, they should be sure to replicate the property caching logic.
Parameters
string $rel: The link relationship type, for example: canonical or edit-form.
Return value
array An array of URI placeholders.
Overrides EntityBase::urlRouteParameters
File
- src/
Entity/ Search.php, line 184
Class
- Search
- Describes the autocomplete settings for a certain search.
Namespace
Drupal\search_api_autocomplete\EntityCode
protected function urlRouteParameters($rel) {
$parameters = parent::urlRouteParameters($rel);
$parameters['search_api_index'] = $this
->getIndexId();
return $parameters;
}