You are here

public static function SearchLocalTask::create 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::create()
  2. 9 core/modules/search/src/Plugin/Derivative/SearchLocalTask.php \Drupal\search\Plugin\Derivative\SearchLocalTask::create()

File

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

Class

SearchLocalTask
Provides local tasks for each search page.

Namespace

Drupal\search\Plugin\Derivative

Code

public static function create(ContainerInterface $container, $base_plugin_id) {
  return new static($container
    ->get('search.search_page_repository'));
}