function SearchPage::getPluginCollection

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

Code

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.