You are here

public function HeartbeatHashBlock::__construct in Heartbeat 8

Construct.

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.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/HeartbeatHashBlock.php, line 74

Class

HeartbeatHashBlock
Provides a 'HeartbeatBlock' block.

Namespace

Drupal\heartbeat\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, HeartbeatTypeService $heartbeat_heartbeattype, HeartbeatStreamServices $heartbeatstream, HeartbeatService $heartbeat, EntityTypeManager $entity_type_manager, DateFormatter $date_formatter, FlagService $flag_service, FormBuilder $form_builder) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->heartbeatTypeService = $heartbeat_heartbeattype;
  $this->heartbeatStreamServices = $heartbeatstream;
  $this->heartbeatService = $heartbeat;
  $this->entityTypeManager = $entity_type_manager;
  $this->dateFormatter = $date_formatter;
  $this->flagService = $flag_service;
  $this->formBuilder = $form_builder;
  $this->timestamp = time();
}