From 73d0a5d5b7076b5f30083f13927470c0728b43f5 Mon Sep 17 00:00:00 2001 From: Sam Light Date: Tue, 26 Aug 2025 21:32:19 +0100 Subject: Removed calls to call on Column --- src/Columns/Column.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/Columns/Column.php') diff --git a/src/Columns/Column.php b/src/Columns/Column.php index e4c50a9..f0a65fe 100644 --- a/src/Columns/Column.php +++ b/src/Columns/Column.php @@ -132,10 +132,13 @@ class Column { protected function getContent(Model $row): string { - return $this->escape( - $this->slotFn?->call($this, $row, $this) ?? - $this->defaultSlot($row) - ); + $content = $this->slotFn === null ? $this->defaultSlot($ow) : ($this->slotFn)($row, $this); + return $this->escape($content); + } + + protected function getAttributes(Model $row): array + { + return $this->tdAttributes !== null ? ($this->tdAttributes)($row) : []; } public function view(Model $row): HtmlString -- cgit v1.2.3