You are here

public function WSDataBlock::__construct in Web Service Data 8

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

Overrides BlockPluginTrait::__construct

File

modules/wsdata_block/src/Plugin/Block/WSDataBlock.php, line 41

Class

WSDataBlock
Provides a 'Green House Gas Emissions' block.

Namespace

Drupal\wsdata_block\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entityTypeManager, WSDataService $wsdata) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entityTypeManager;
  $this->wsdata = $wsdata;
}