Merges an incoming modules bag into target.modules entry by entry
(incoming entries override existing ones for the same module id, by
reference). A wholesale target.modules = incoming assignment would drop
bag entries owned by other plugins and declared elsewhere (e.g. in the
boot config when the incoming bag comes from a profile).
Merges an incoming
modulesbag intotarget.modulesentry by entry (incoming entries override existing ones for the same module id, by reference). A wholesaletarget.modules = incomingassignment would drop bag entries owned by other plugins and declared elsewhere (e.g. in the boot config when the incoming bag comes from a profile).