Skip to content

Commit b4bc60e

Browse files
authored
Merge pull request #8128 from cakephp/5.next-view-merge
Document view builder merge strategy.
2 parents 1c8e766 + 30f9eec commit b4bc60e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

en/appendices/5-3-migration-guide.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,3 +225,12 @@ View
225225
By default, the helper generates inputs of type checkbox and radio nested
226226
inside their label. Setting the ``nestedCheckboxAndRadio`` option to ``false``
227227
will turn off the nesting.
228+
229+
- ``ViewBuilder::setConfigMergeStrategy()`` was added to control how view options
230+
are merged with the View class's default configuration. Available strategies are
231+
``ViewBuilder::MERGE_DEEP`` (recursive merge, default) and ``ViewBuilder::MERGE_SHALLOW``
232+
(simple array merge). This is useful when you want to replace array values in view
233+
options rather than deep merging them.
234+
235+
- ``ViewBuilder::getConfigMergeStrategy()`` was added to retrieve the current merge
236+
strategy setting.

0 commit comments

Comments
 (0)