You are here

protected function SearchPage::getPluginCollection in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/search/src/Entity/SearchPage.php \Drupal\search\Entity\SearchPage::getPluginCollection()
  2. 9 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.

3 calls to SearchPage::getPluginCollection()
SearchPage::getPlugin in core/modules/search/src/Entity/SearchPage.php
Returns the search plugin.
SearchPage::getPluginCollections in core/modules/search/src/Entity/SearchPage.php
Gets the plugin collections used by this object.
SearchPage::setPlugin in core/modules/search/src/Entity/SearchPage.php
Sets the search plugin.

File

core/modules/search/src/Entity/SearchPage.php, line 127

Class

SearchPage
Defines a configured search page.

Namespace

Drupal\search\Entity

Code

protected function getPluginCollection() {
  if (!$this->pluginCollection) {
    $this->pluginCollection = new SearchPluginCollection($this
      ->searchPluginManager(), $this->plugin, $this->configuration, $this
      ->id());
  }
  return $this->pluginCollection;
}