You are here

public function ChartTrait::addRow in Dashboards with Layout Builder 2.0.x

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

Add a row.

Parameters

array $row: Row to add.

File

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

Class

ChartTrait
Trait for build a chart.

Namespace

Drupal\dashboards\Plugin\Dashboard

Code

public function addRow(array $row) : void {
  $this->rows[] = $row;
}