/**
* The plugin collection that stores search plugins.
*
* @var \Drupal\search\Plugin\SearchPluginCollection
*/
protected $pluginCollection;
/**
* {@inheritdoc}
*/
public function getPlugin() { return $this->
getPluginCollection()->
get($this->plugin
);
} /**
* Encapsulates the creation of the search page's LazyPluginCollection.
*
* @return \Drupal\Component\Plugin\LazyPluginCollection
* The search page's plugin collection.
*/
protected function getPluginCollection() { if (!
$this->pluginCollection
) { $this->pluginCollection =
new SearchPluginCollection($this->
searchPluginManager(),
$this->plugin,
$this->configuration,
$this->
id());
}