You are here

protected function SearchPage::getPluginCollection in Drupal 9

Same name and namespace in other branches
  1. 8 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
Gets the plugin collections used by this object.

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;
}