You are here

public function PluginBase::getSearch in Search API Autocomplete 8

Retrieves the search this plugin is configured for.

Return value

\Drupal\search_api_autocomplete\SearchInterface|null The search this plugin is configured for, or NULL if no search entity has yet been set for it.

Overrides PluginInterface::getSearch

3 calls to PluginBase::getSearch()
LiveResults::buildConfigurationForm in src/Plugin/search_api_autocomplete/suggester/LiveResults.php
Form constructor.
Server::buildConfigurationForm in src/Plugin/search_api_autocomplete/suggester/Server.php
Form constructor.
Server::getAutocompleteSuggestions in src/Plugin/search_api_autocomplete/suggester/Server.php
Retrieves autocompletion suggestions for some user input.

File

src/Plugin/PluginBase.php, line 42

Class

PluginBase
Provides a common base class for autocomplete search plugins.

Namespace

Drupal\search_api_autocomplete\Plugin

Code

public function getSearch() {
  return $this->search;
}