Skip to content
Snippets Groups Projects
Commit 9ffbf4a8 authored by Martin Giessing's avatar Martin Giessing
Browse files

Fixed issue where layout blocks was not transformed in the right order

parent 2b3ea20d
No related branches found
No related tags found
No related merge requests found
......@@ -175,7 +175,12 @@ class LayoutBuilderTransform extends FieldTransformBase {
catch (PluginNotFoundException) {
}
$components = [];
foreach ($section->getComponents() as $component) {
$components[$component->getWeight()] = $component;
}
ksort($components);
foreach ($components as $component) {
$componentPlugin = $component->getPlugin();
$configuration = ['contexts' => $contexts];
$transformPlugin = $this->componentTransformManager->createInstance($componentPlugin->getPluginDefinition()['id'], $configuration);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment