public function PluginBase::setSearch in Search API Autocomplete 8
Sets the search this plugin is configured for.
Parameters
\Drupal\search_api_autocomplete\SearchInterface $search: The new search entity this plugin should be linked to.
Return value
$this
Overrides PluginInterface::setSearch
1 call to PluginBase::setSearch()
- PluginBase::__construct in src/
Plugin/ PluginBase.php - Constructs a SearchPluginBase object.
File
- src/
Plugin/ PluginBase.php, line 49
Class
- PluginBase
- Provides a common base class for autocomplete search plugins.
Namespace
Drupal\search_api_autocomplete\PluginCode
public function setSearch(SearchInterface $search) {
$this->search = $search;
return $this;
}