public function getBreadcrumbs(): array
{
$newBreadcrumbs = [];
foreach (parent::getBreadcrumbs() as $key => $value) {
if (str_contains($key, 'relation=goalEvaluations')) {
$newKey = str_replace('?relation=goalEvaluations', '/zielauswertungen', $key);
$newBreadcrumbs[$newKey] = 'Zielauswertung';
} else {
$newBreadcrumbs[$key] = $value;
}
}
return $newBreadcrumbs;
}
public function getBreadcrumbs(): array
{
$newBreadcrumbs = [];
foreach (parent::getBreadcrumbs() as $key => $value) {
if (str_contains($key, 'relation=goalEvaluations')) {
$newKey = str_replace('?relation=goalEvaluations', '/zielauswertungen', $key);
$newBreadcrumbs[$newKey] = 'Zielauswertung';
} else {
$newBreadcrumbs[$key] = $value;
}
}
return $newBreadcrumbs;
}