Skip to content

Commit

Permalink
[5.x] Page children as value for field conditions (#11368)
Browse files Browse the repository at this point in the history
  • Loading branch information
heidkaemper authored Jan 22, 2025
1 parent d337a2f commit 36c3b22
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ protected function extractFromFields($entry, $blueprint)

$extraValues = [
'depth' => $entry->page()?->depth(),
'children' => $entry->page()?->flattenedPages()->pluck('id')->all(),
];

return [$values->all(), $fields->meta(), $extraValues];
Expand Down

0 comments on commit 36c3b22

Please sign in to comment.