You are here

public function WebformAnalysisBlock::__construct in Webform Analysis 8

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/WebformAnalysisBlock.php, line 47

Class

WebformAnalysisBlock
Provides a 'Webform' block.

Namespace

Drupal\webform_analysis\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entityTypeManager = NULL, FormBuilderInterface $formBuilder = NULL) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entityTypeManager ? $entityTypeManager : \Drupal::entityTypeManager();
  $this->formBuilder = $formBuilder ? $formBuilder : \Drupal::formBuilder();
}