You are here

public static function HelpBlock::create in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/help/src/Plugin/Block/HelpBlock.php \Drupal\help\Plugin\Block\HelpBlock::create()
  2. 9 core/modules/help/src/Plugin/Block/HelpBlock.php \Drupal\help\Plugin\Block\HelpBlock::create()

File

core/modules/help/src/Plugin/Block/HelpBlock.php, line 74

Class

HelpBlock
Provides a 'Help' block.

Namespace

Drupal\help\Plugin\Block

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('request_stack')
    ->getCurrentRequest(), $container
    ->get('module_handler'), $container
    ->get('current_route_match'));
}