You are here

public function TocJsBlock::__construct in Toc.js 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Block/TocJsBlock.php \Drupal\toc_js\Plugin\Block\TocJsBlock::__construct()

Constructs a new SocialSimpleBlock object.

Parameters

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

string $plugin_id: The plugin_id for the plugin instance.

string $plugin_definition: The plugin implementation definition.

\Drupal\Core\Routing\CurrentRouteMatch $current_route_match: The current route match.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/TocJsBlock.php, line 43

Class

TocJsBlock
Provides a 'SocialSimpleBlock' block.

Namespace

Drupal\toc_js\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, CurrentRouteMatch $current_route_match) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->currentRouteMatch = $current_route_match;
}