You are here

public function ChartTrait::setLabels in Dashboards with Layout Builder 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Dashboard/ChartTrait.php \Drupal\dashboards\Plugin\Dashboard\ChartTrait::setLabels()

Set all labels.

Parameters

array $labels: Labels to set.

5 calls to ChartTrait::setLabels()
Comments::buildRenderArray in modules/dashboards_comments/src/Plugin/Dashboard/Comments.php
Build render array.
MatomoBase::buildDateRows in modules/dashboards_matomo/src/Plugin/Dashboard/MatomoBase.php
Helper function for build rows from matomo.
MostReaded::buildRenderArray in modules/dashboards_statistic/src/Plugin/Dashboard/MostReaded.php
Build render array.
NodeStatistics::buildRenderArray in src/Plugin/Dashboard/NodeStatistics.php
Build render array.
Submissions::buildRenderArray in modules/dashboards_webform/src/Plugin/Dashboard/Submissions.php
Build render array.

File

src/Plugin/Dashboard/ChartTrait.php, line 88

Class

ChartTrait
Trait for build a chart.

Namespace

Drupal\dashboards\Plugin\Dashboard

Code

public function setLabels(array $labels) : void {
  $this->labels = $labels;
}