You are here

public function ChartTrait::setEmpty 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::setEmpty()

Set this chart is empty.

Parameters

bool $empty: Empty flag to set.

1 call to ChartTrait::setEmpty()
NodeStatistics::buildRenderArray in src/Plugin/Dashboard/NodeStatistics.php
Build render array.

File

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

Class

ChartTrait
Trait for build a chart.

Namespace

Drupal\dashboards\Plugin\Dashboard

Code

public function setEmpty(bool $empty) : void {
  $this->empty = $empty;
}