This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,19 @@ block mapped by the persistence layer as argument. If you set this to
136
136
something that is not a valid block, the problem is only detected when
137
137
rendering the block.
138
138
139
+ .. _bundles-block-menu :
140
+
141
+ MenuBlock
142
+ ---------
143
+
144
+ This block has no content of its own, but points to a target menu or
145
+ menu entry. When rendered, this block renders the target menu just as
146
+ if the target menu was directly used in that place. If pointing to a
147
+ menu entry, the menu gets rendered from this point.
148
+
149
+ This block simply has the method ``setMenuNode `` that accepts any
150
+ menu mapped by the persistence layer as argument.
151
+
139
152
ActionBlock
140
153
-----------
141
154
Original file line number Diff line number Diff line change 1
- .. index ::
1
+ .. index ::
2
2
single: Menu; Bundles
3
3
single: MenuBundle
4
4
@@ -129,6 +129,12 @@ example is specified. This will render an unordered list as follows:
129
129
130
130
echo $view['knp_menu']->render('/cms/some/path/my-menu');
131
131
132
+ .. tip ::
133
+
134
+ When using the :doc: `BlockBundle <../block/introduction >`, you can also use the
135
+ ``MenuBlock ``. Read more about that in the
136
+ :ref: `BlockBundle documentation <bundles-block-menu >`
137
+
132
138
.. note ::
133
139
134
140
It is the ``PhpcrMenuProvider `` class which allows us to specify a
You can’t perform that action at this time.
0 commit comments