function SearchPageInterface::setPlugin
Same name in other branches
- 9 core/modules/search/src/SearchPageInterface.php \Drupal\search\SearchPageInterface::setPlugin()
- 10 core/modules/search/src/SearchPageInterface.php \Drupal\search\SearchPageInterface::setPlugin()
- 11.x core/modules/search/src/SearchPageInterface.php \Drupal\search\SearchPageInterface::setPlugin()
Sets the search plugin.
Parameters
string $plugin_id: The search plugin ID.
1 method overrides SearchPageInterface::setPlugin()
- SearchPage::setPlugin in core/
modules/ search/ src/ Entity/ SearchPage.php - Sets the search plugin.
File
-
core/
modules/ search/ src/ SearchPageInterface.php, line 26
Class
- SearchPageInterface
- Provides an interface defining a search page entity.
Namespace
Drupal\searchCode
public function setPlugin($plugin_id);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.