You are here

public function ModerationDashboardActivity::__construct in Moderation Dashboard 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/Block/ModerationDashboardActivity.php \Drupal\moderation_dashboard\Plugin\Block\ModerationDashboardActivity::__construct()

ModerationDashboardActivity constructor.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Database\Connection $database: The database connection.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

\Drupal\Core\Entity\EntityStorageInterface $user_storage: The user storage.

Overrides BlockPluginTrait::__construct

File

src/Plugin/Block/ModerationDashboardActivity.php, line 60

Class

ModerationDashboardActivity
Provides the "Moderation Dashboard Activity" block.

Namespace

Drupal\moderation_dashboard\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, Connection $database, TimeInterface $time, EntityStorageInterface $user_storage) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->database = $database;
  $this->time = $time;
  $this->userStorage = $user_storage;
}