You are here

public function Ulogin::__construct in uLogin (advanced version) 8

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 BlockPluginTrait::__construct

File

src/Plugin/Block/Ulogin.php, line 60

Class

Ulogin
Provides a 'Ulogin' block.

Namespace

Drupal\ulogin\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;
}