function SearchPage::getPluginCollection
Same name in other branches
- 8.9.x core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage::getPluginCollection()
- 10 core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage::getPluginCollection()
- 11.x core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage::getPluginCollection()
Encapsulates the creation of the search page's LazyPluginCollection.
Return value
\Drupal\Component\Plugin\LazyPluginCollection The search page's plugin collection.
1 call to SearchPage::getPluginCollection()
- SearchPage::getPluginCollections in core/
modules/ search/ src/ Entity/ SearchPage.php
File
-
core/
modules/ search/ src/ Entity/ SearchPage.php, line 127
Class
- SearchPage
- Defines a configured search page.
Namespace
Drupal\search\EntityCode
protected function getPluginCollection() {
if (!$this->pluginCollection) {
$this->pluginCollection = new SearchPluginCollection($this->searchPluginManager(), $this->plugin, $this->configuration, $this->id());
}
return $this->pluginCollection;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.