function SearchPluginCollection::initializePlugin
Same name in other branches
- 8.9.x core/modules/search/src/Plugin/SearchPluginCollection.php \Drupal\search\Plugin\SearchPluginCollection::initializePlugin()
- 10 core/modules/search/src/Plugin/SearchPluginCollection.php \Drupal\search\Plugin\SearchPluginCollection::initializePlugin()
- 11.x core/modules/search/src/Plugin/SearchPluginCollection.php \Drupal\search\Plugin\SearchPluginCollection::initializePlugin()
Overrides DefaultSingleLazyPluginCollection::initializePlugin
File
-
core/
modules/ search/ src/ Plugin/ SearchPluginCollection.php, line 50
Class
- SearchPluginCollection
- Provides a container for lazily loading search plugins.
Namespace
Drupal\search\PluginCode
protected function initializePlugin($instance_id) {
parent::initializePlugin($instance_id);
$plugin_instance = $this->pluginInstances[$instance_id];
if ($plugin_instance instanceof ConfigurableSearchPluginInterface) {
$plugin_instance->setSearchPageId($this->searchPageId);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.