function SearchPage::setPlugin
Same name in other branches
- 8.9.x core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage::setPlugin()
- 10 core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage::setPlugin()
- 11.x core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage::setPlugin()
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.