You are here

public function SearchLocalTask::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/search/src/Plugin/Derivative/SearchLocalTask.php \Drupal\search\Plugin\Derivative\SearchLocalTask::__construct()
  2. 9 core/modules/search/src/Plugin/Derivative/SearchLocalTask.php \Drupal\search\Plugin\Derivative\SearchLocalTask::__construct()

Constructs a new SearchLocalTask.

Parameters

\Drupal\search\SearchPageRepositoryInterface $search_page_repository: The search page repository.

File

core/modules/search/src/Plugin/Derivative/SearchLocalTask.php, line 28

Class

SearchLocalTask
Provides local tasks for each search page.

Namespace

Drupal\search\Plugin\Derivative

Code

public function __construct(SearchPageRepositoryInterface $search_page_repository) {
  $this->searchPageRepository = $search_page_repository;
}