public function SearchPage::setPlugin in Drupal 9
Same name and namespace in other branches
- 8 core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage::setPlugin()
Sets the search plugin.
Parameters
string $plugin_id: The search plugin ID.
Overrides SearchPageInterface::setPlugin
File
- core/
modules/ search/ src/ Entity/ SearchPage.php, line 144
Class
- SearchPage
- Defines a configured search page.
Namespace
Drupal\search\EntityCode
public function setPlugin($plugin_id) {
$this->plugin = $plugin_id;
$this
->getPluginCollection()
->addInstanceID($plugin_id);
}