public function listRecords($row) { $strLabel = $row['alias']; if ($row['type'] == '') { return $strLabel; } $strClass = \Model::getClassFromTable($row['type']); if (!class_exists($strClass)) { return $strLabel; } $objModel = new $strClass(); $objModel->setRow($row); return \HeimrichHannot\Participation\ParticipationController::getParticipationLabel($objModel, $strLabel); }