Skip to content

Commit 85e364b

Browse files
committed
Extract messages into separate loki_messages handler for usage elsewhere
1 parent 5f7afcc commit 85e364b

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

view/base/layout/loki_components.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
44
<update handle="loki_base"/>
5+
<update handle="loki_messages"/>
56

67
<body>
78
<block

view/base/layout/loki_messages.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0"?>
2+
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
4+
<update handle="loki_base"/>
5+
6+
<body>
7+
<block
8+
name="loki.script.message-transfer"
9+
template="Loki_Components::script/message-transfer.phtml">
10+
<arguments>
11+
<argument name="messages" xsi:type="object">Loki\Components\ViewModel\Messages</argument>
12+
</arguments>
13+
</block>
14+
15+
<block
16+
name="loki-components.utils.local-messages"
17+
template="Loki_Components::utils/local-messages.phtml"/>
18+
</body>
19+
</page>

0 commit comments

Comments
 (0)