You are here

public function HelpBlock::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/help/src/Plugin/Block/HelpBlock.php \Drupal\help\Plugin\Block\HelpBlock::__construct()

Creates a HelpBlock instance.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Symfony\Component\HttpFoundation\Request $request: The current request.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

Overrides BlockBase::__construct

File

core/modules/help/src/Plugin/Block/HelpBlock.php, line 65
Contains \Drupal\help\Plugin\Block\HelpBlock.

Class

HelpBlock
Provides a 'Help' block.

Namespace

Drupal\help\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, Request $request, ModuleHandlerInterface $module_handler, RouteMatchInterface $route_match) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->request = $request;
  $this->moduleHandler = $module_handler;
  $this->routeMatch = $route_match;
}