public function SearchPage::setPlugin in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 143 - Contains \Drupal\search\Entity\SearchPage.
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);
}