public function HeartbeatSubCommentBlock::__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/ HeartbeatSubCommentBlock.php, line 41
Class
- HeartbeatSubCommentBlock
- Provides a 'HeartbeatSubCommentBlock' block.
Namespace
Drupal\heartbeat\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, FormBuilder $form_builder, EntityTypeManager $entity_type_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->form_builder = $form_builder;
$this->entityTypeManager = $entity_type_manager;
}