public function ChartDataItem::getInfo in Charts 8.4
Same name and namespace in other branches
- 5.0.x 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\ElementCode
public function getInfo() {
return [
'#data' => NULL,
'#color' => NULL,
// Often used as content of the tooltip.
'#title' => NULL,
];
}