You are here

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

Expanded class hierarchy of AbstractSearchService

File

src/SearchService/AbstractSearchService.php, line 11

Namespace

Drupal\fac\SearchService
View 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

Namesort descending Modifiers Type Description Overrides
AbstractSearchService::configurationForm public function Implements SearchApiServiceInterface::configurationForm(). Overrides SearchServiceInterface::configurationForm 4
AbstractSearchService::configurationFormSubmit public function Implements FacServiceInterface::configurationFormSubmit(). Overrides SearchServiceInterface::configurationFormSubmit 4
AbstractSearchService::configurationFormValidate public function Implements FacServiceInterface::configurationFormValidate(). Overrides SearchServiceInterface::configurationFormValidate 4
AbstractSearchService::search public function Implements FacServiceInterface::search(). Overrides SearchServiceInterface::search 4
AbstractSearchService::__construct public function Implements FacServiceInterface::__construct(). Overrides SearchServiceInterface::__construct