function SearchPluginCollection::__construct

Same name in other branches
  1. 9 core/modules/search/src/Plugin/SearchPluginCollection.php \Drupal\search\Plugin\SearchPluginCollection::__construct()
  2. 8.9.x core/modules/search/src/Plugin/SearchPluginCollection.php \Drupal\search\Plugin\SearchPluginCollection::__construct()
  3. 10 core/modules/search/src/Plugin/SearchPluginCollection.php \Drupal\search\Plugin\SearchPluginCollection::__construct()

Constructs a new SearchPluginCollection.

Parameters

\Drupal\Component\Plugin\PluginManagerInterface $manager: The manager to be used for instantiating plugins.

string $instance_id: The ID of the plugin instance.

array $configuration: An array of configuration.

string $search_page_id: The unique ID of the search page using this plugin.

Overrides DefaultSingleLazyPluginCollection::__construct

File

core/modules/search/src/Plugin/SearchPluginCollection.php, line 32

Class

SearchPluginCollection
Provides a container for lazily loading search plugins.

Namespace

Drupal\search\Plugin

Code

public function __construct(PluginManagerInterface $manager, $instance_id, array $configuration, $search_page_id) {
    parent::__construct($manager, $instance_id, $configuration);
    $this->searchPageId = $search_page_id;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.