You are here

public function BlocktabsBlock::__construct in Block Tabs 8

Same name in this branch
  1. 8 src/Plugin/Derivative/BlocktabsBlock.php \Drupal\blocktabs\Plugin\Derivative\BlocktabsBlock::__construct()
  2. 8 src/Plugin/Block/BlocktabsBlock.php \Drupal\blocktabs\Plugin\Block\BlocktabsBlock::__construct()

Constructs a new SystemMenuBlock.

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\Block\BlockManagerInterface $block_manager: The block manager.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/BlocktabsBlock.php, line 68

Class

BlocktabsBlock
Provides a blocktabs block.

Namespace

Drupal\blocktabs\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, BlockManagerInterface $block_manager, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->blockManager = $block_manager;
  $this->entityTypeManager = $entity_type_manager;
}