You are here

public function HeartbeatUsernameBlock::__construct in Heartbeat 8

Constructs a new HeartbeatUsernameBlock object.

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/HeartbeatUsernameBlock.php, line 70

Class

HeartbeatUsernameBlock
Provides a 'HeartbeatUsernameBlock' 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) {
  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;
  $this->timestamp = time();
}