function SearchLocalTask::create

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

Overrides ContainerDeriverInterface::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'));
}

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