You are here

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

Same name and namespace in other branches
  1. 2.0.x modules/dashboards_matomo/src/Plugin/Dashboard/MatomoBase.php \Drupal\dashboards_matomo\Plugin\Dashboard\MatomoBase::__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_matomo/src/Plugin/Dashboard/MatomoBase.php, line 30

Class

MatomoBase
Base class for matomo plugins.

Namespace

Drupal\dashboards_matomo\Plugin\Dashboard

Code

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