You are here

public function HeartbeatBlock::__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/HeartbeatBlock.php, line 78

Class

HeartbeatBlock
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, ConfigFactory $configFactory) {
  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->configFactory = $configFactory;
  $this->timestamp = time();
}