You are here

public function NotificationsWidgetBlock::__construct in Notifications widget 8

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/NotificationsWidgetBlock.php, line 42

Class

NotificationsWidgetBlock
Provides a block with list of notification items.

Namespace

Drupal\notifications_widget\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, AccountInterface $current_user, Connection $database) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->currentUser = $current_user;
  $this->database = $database;
}