You are here

public function Comments::__construct in Dashboards with Layout Builder 2.0.x

Same name and namespace in other branches
  1. 8 modules/dashboards_comments/src/Plugin/Dashboard/Comments.php \Drupal\dashboards_comments\Plugin\Dashboard\Comments::__construct()

Constructs a \Drupal\Component\Plugin\PluginBase object.

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.

Overrides DashboardBase::__construct

File

modules/dashboards_comments/src/Plugin/Dashboard/Comments.php, line 51

Class

Comments
Plugin for comment reports.

Namespace

Drupal\dashboards_comments\Plugin\Dashboard

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, CacheBackendInterface $cache_backend, EntityTypeBundleInfoInterface $entity_type_info, ModuleHandlerInterface $module_handler, Connection $database) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $cache_backend);
  $this->entityTypeInfo = $entity_type_info;
  $this->moduleHandler = $module_handler;
  $this->database = $database;
}