This function returns the data for filling the template. The return value of the function is expected to be an associative array. The keys are used to assign placeholders to templates.
Please note:The label key can be used to overwrite the default title. It is possible to return HTML which is inserted into the title to e.g. display a hyperlink.
Example:
public function getData()
{
return [
"label" => '<u>' . $this->getTitle() . '</u>',
"items" => [
['label' => 'Steps in inbox', 'value' => $this->getStepCount('inbox')],
['label' => 'Steps in completed', 'value' => $this->getStepCount('completed')]
],
"noEntries" => $this->getNoEntriesLabel(),
];
}