You are here

public function DashboardBase::__construct in Dashboards with Layout Builder 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/DashboardBase.php \Drupal\dashboards\Plugin\DashboardBase::__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 PluginBase::__construct

8 calls to DashboardBase::__construct()
Account::__construct in src/Plugin/Dashboard/Account.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
AddContentMenu::__construct in src/Plugin/Dashboard/AddContentMenu.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
Comments::__construct in modules/dashboards_comments/src/Plugin/Dashboard/Comments.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
MatomoBase::__construct in modules/dashboards_matomo/src/Plugin/Dashboard/MatomoBase.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
MostReaded::__construct in modules/dashboards_statistic/src/Plugin/Dashboard/MostReaded.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

... See full list

8 methods override DashboardBase::__construct()
Account::__construct in src/Plugin/Dashboard/Account.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
AddContentMenu::__construct in src/Plugin/Dashboard/AddContentMenu.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
Comments::__construct in modules/dashboards_comments/src/Plugin/Dashboard/Comments.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
MatomoBase::__construct in modules/dashboards_matomo/src/Plugin/Dashboard/MatomoBase.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
MostReaded::__construct in modules/dashboards_statistic/src/Plugin/Dashboard/MostReaded.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

... See full list

File

src/Plugin/DashboardBase.php, line 33

Class

DashboardBase
Base class for Dashboard plugins.

Namespace

Drupal\dashboards\Plugin

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, CacheBackendInterface $cache_backend) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $plugin_definition);
  $this->cache = $cache_backend;
}