function SearchPageListBuilder::__construct

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

Constructs a new SearchPageListBuilder object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.

\Drupal\search\SearchPluginManager $search_manager: The search plugin manager.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

\Drupal\search\SearchIndexInterface $search_index: The search index.

Overrides DraggableListBuilder::__construct

File

core/modules/search/src/SearchPageListBuilder.php, line 76

Class

SearchPageListBuilder
Defines a class to build a listing of search page entities.

Namespace

Drupal\search

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, SearchPluginManager $search_manager, ConfigFactoryInterface $config_factory, MessengerInterface $messenger, SearchIndexInterface $search_index) {
    parent::__construct($entity_type, $storage);
    $this->configFactory = $config_factory;
    $this->searchManager = $search_manager;
    $this->messenger = $messenger;
    $this->searchIndex = $search_index;
}

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