From 88d262cedb260aed58915d09eae8cb4a40992f60 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 9 Dec 2024 17:04:32 +0100 Subject: [PATCH] Add renderer for object ids --- .../renderer/ObjectIdColumnRenderer.class.php | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 wcfsetup/install/files/lib/system/gridView/renderer/ObjectIdColumnRenderer.class.php diff --git a/wcfsetup/install/files/lib/system/gridView/renderer/ObjectIdColumnRenderer.class.php b/wcfsetup/install/files/lib/system/gridView/renderer/ObjectIdColumnRenderer.class.php new file mode 100644 index 0000000000..d168fe6400 --- /dev/null +++ b/wcfsetup/install/files/lib/system/gridView/renderer/ObjectIdColumnRenderer.class.php @@ -0,0 +1,26 @@ + + * @since 6.2 + */ +class ObjectIdColumnRenderer extends AbstractColumnRenderer +{ + #[\Override] + public function render(mixed $value, mixed $context = null): string + { + return \intval($value); + } + + #[\Override] + public function getClasses(): string + { + return 'gridView__column--digits'; + } +} -- 2.20.1