diff --git a/module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatter.php b/module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatter.php
index 8fc80ff8c15a0a7c01ef3f0c70560b6f861e8a5a..df5bd32ca088a5bbece3d5bd37730fa6ef8b9ab6 100644
--- a/module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatter.php
+++ b/module/VuFind/src/VuFind/View/Helper/Root/RecordDataFormatter.php
@@ -102,7 +102,8 @@ class RecordDataFormatter extends AbstractHelper
                     }
                     // Allow dynamic label override:
                     $label = is_callable($current['labelFunction'] ?? null)
-                        ? call_user_func($current['labelFunction'], $data) : $field;
+                        ? call_user_func($current['labelFunction'], $data, $driver)
+                        : $field;
                     $result[$label] = [
                         'value' => $text,
                         'context' => $current['context'] ?? [],