Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
fixes #17 - flag visible in table layout
Browse files Browse the repository at this point in the history
  • Loading branch information
rasteiner authored Jul 11, 2022
1 parent 43ddc63 commit 5497cd7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/PagesDisplaySection.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

return $controls;
},
// kirby does magic checks in mixins to see if this is a "pages" section. Fake that, will be reset in toArray.
'type' => fn() => 'pages',
],
'computed' => [
'pages' => function () {
Expand Down Expand Up @@ -95,7 +97,8 @@
'sortable' => function () {
return false;
}
]
],
'toArray' => fn() => Closure::fromCallable($base['toArray'])->call($this) + [ 'type' => 'pagesdisplay' ]
];

return array_replace_recursive($base, $extension);

0 comments on commit 5497cd7

Please sign in to comment.