abstract class AbstractSearchService in Fast Autocomplete 7
Abstract class with generic implementation of some service methods.
For creating your own service class extending this class, you only need to implement search() from the SearchServiceInterface interface.
Hierarchy
- class \Drupal\fac\SearchService\AbstractSearchService implements SearchServiceInterface
Expanded class hierarchy of AbstractSearchService
File
- src/
SearchService/ AbstractSearchService.php, line 11
Namespace
Drupal\fac\SearchServiceView source
abstract class AbstractSearchService implements SearchServiceInterface {
/**
* Implements FacServiceInterface::__construct().
*/
public function __construct() {
}
/**
* Implements SearchApiServiceInterface::configurationForm().
*
* Returns an empty form by default.
*/
public function configurationForm(array $form, array &$form_state) {
return array();
}
/**
* Implements FacServiceInterface::configurationFormValidate().
*
* Does nothing by default.
*/
public function configurationFormValidate(array $form, array &$values, array &$form_state) {
}
/**
* Implements FacServiceInterface::configurationFormSubmit().
*
* Does nothing by default.
*/
public function configurationFormSubmit(array $form, array &$values, array &$form_state) {
}
/**
* Implements FacServiceInterface::search().
*
* Does nothing by default.
*/
public function search($key, $language) {
return array();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AbstractSearchService:: |
public | function |
Implements SearchApiServiceInterface::configurationForm(). Overrides SearchServiceInterface:: |
4 |
AbstractSearchService:: |
public | function |
Implements FacServiceInterface::configurationFormSubmit(). Overrides SearchServiceInterface:: |
4 |
AbstractSearchService:: |
public | function |
Implements FacServiceInterface::configurationFormValidate(). Overrides SearchServiceInterface:: |
4 |
AbstractSearchService:: |
public | function |
Implements FacServiceInterface::search(). Overrides SearchServiceInterface:: |
4 |
AbstractSearchService:: |
public | function |
Implements FacServiceInterface::__construct(). Overrides SearchServiceInterface:: |