Skip to content

Commit d8e1e43

Browse files
committed
Add any layout handle with "loki_theme_" prefix
1 parent d94161a commit d8e1e43

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Observer/ApplyLayoutHandles.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ public function execute(Observer $observer): void
2222
}
2323

2424
$this->layout->getUpdate()->addHandle('loki_theme_remove_legacy_js');
25-
$this->layout->getUpdate()->addHandle('loki_theme_add_alpine');
25+
26+
foreach ($this->layout->getUpdate()->getHandles() as $handle) {
27+
$this->layout->getUpdate()->addHandle('loki_theme_' . $handle);
28+
}
2629
}
2730
}

0 commit comments

Comments
 (0)