You are here

public function SearchServiceInterface::search in Fast Autocomplete 7

Performs a search call.

Parameters

string $key: The key to use in the search query.

string $language: The language to use in the search query.

Return value

array A keyed array with an array of items. Each item is a keyed array of entity_type and the entity_id.

Example array structure: array( 'suggestions' => array( array( 'entity_type => 'node', 'etid => 1, ), array( entity_type => 'node', etid => 2, ), );

1 method overrides SearchServiceInterface::search()
AbstractSearchService::search in src/SearchService/AbstractSearchService.php
Implements FacServiceInterface::search().

File

src/SearchService/SearchServiceInterface.php, line 85

Class

SearchServiceInterface
Interface defining the methods backend search services have to implement.

Namespace

Drupal\fac\SearchService

Code

public function search($key, $language);