You are here

public function SearchPluginCollection::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/search/src/Plugin/SearchPluginCollection.php \Drupal\search\Plugin\SearchPluginCollection::__construct()
  2. 9 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;
}