We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34956ec commit 0dfb7a7Copy full SHA for 0dfb7a7
src/Resources/PageResource/Pages/ManagePageTree.php
@@ -77,7 +77,10 @@ protected function getFooterWidgets(): array
77
78
public function getTreeRecordIcon(?Model $record = null): ?string
79
{
80
- /** @var HasPageAttributes $record */
81
- return $record?->isPublished() ? null : 'heroicon-o-eye-slash' ;
+ if ($record instanceof HasPageAttributes) {
+ return $record->isPublished() ? null : 'heroicon-o-eye-slash';
82
+ }
83
+
84
+ return null;
85
}
86
0 commit comments