You are here

protected function DashboardBase::getCache 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::getCache()

Get cache for cid.

Parameters

string $cid: Cache id.

Return value

mixed Return cache data.

4 calls to DashboardBase::getCache()
Comments::buildRenderArray in modules/dashboards_comments/src/Plugin/Dashboard/Comments.php
Build render array.
MatomoBase::query in modules/dashboards_matomo/src/Plugin/Dashboard/MatomoBase.php
Helper function for query matomo.
MostReaded::buildRenderArray in modules/dashboards_statistic/src/Plugin/Dashboard/MostReaded.php
Build render array.
Submissions::buildRenderArray in modules/dashboards_webform/src/Plugin/Dashboard/Submissions.php
Build render array.

File

src/Plugin/DashboardBase.php, line 110

Class

DashboardBase
Base class for Dashboard plugins.

Namespace

Drupal\dashboards\Plugin

Code

protected function getCache(string $cid) {
  return $this->cache
    ->get($this
    ->getPluginId() . ':' . $cid);
}