You are here

public function ChartDataItem::getInfo in Charts 5.0.x

Same name and namespace in other branches
  1. 8.4 src/Element/ChartDataItem.php \Drupal\charts\Element\ChartDataItem::getInfo()

Returns the element properties for this element.

Return value

array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.

Overrides ElementInterface::getInfo

File

src/Element/ChartDataItem.php, line 17

Class

ChartDataItem
Provides a chart data item render element.

Namespace

Drupal\charts\Element

Code

public function getInfo() {
  return [
    '#data' => NULL,
    '#color' => NULL,
    // Often used as content of the tooltip.
    '#title' => NULL,
  ];
}