#59327 closed enhancement (fixed)
Add optional callback argument to serialize_block(s)
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
For some operations, we need to traverse the parsed block tree (before it is eventually serialized). In order to minimize the number of tree traversals (which is a potentially costly operation), it seems that adding a callback function argument to serialize_block()
-- which inevitably has to traverse the entire tree anyway -- is a natural fit.
Examples where this will come in handy:
theme
arg injection into a block template loaded from a file.- Automatic insertion of hooked blocks (see #59313).
Change History (2)
Note: See
TracTickets for help on using
tickets.
In 56557: