You are here

public function PoweredByBlock::__construct in Ubercart 8.4

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.

\Drupal\Core\PrivateKey $private_key: The site's private key.

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

Overrides BlockPluginTrait::__construct

File

uc_store/src/Plugin/Block/PoweredByBlock.php, line 51

Class

PoweredByBlock
Provides a block to identify Ubercart as the store software on a site.

Namespace

Drupal\uc_store\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, PrivateKey $private_key, RouteMatchInterface $route_match) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->privateKey = $private_key;
  $this->routeMatch = $route_match;
}