Upgrade to 3.6.2

This commit is contained in:
Bastian Allgeier
2022-02-01 11:42:39 +01:00
parent f62d1a39ca
commit 848ea36dcf
108 changed files with 2887 additions and 2622 deletions

View File

@@ -84,13 +84,11 @@ class LayoutField extends BlocksField
return Layout::factory([
'attrs' => $attrs,
'columns' => array_map(function ($width) {
return [
'blocks' => [],
'id' => uuid(),
'width' => $width,
];
}, $columns)
'columns' => array_map(fn ($width) => [
'blocks' => [],
'id' => uuid(),
'width' => $width,
], $columns)
])->toArray();
},
];