Admin hook that regenerates the selected section's configuration when the user
switches to a variant that defines its own defaults via variantInitialConfig.
Unlike initialConfig, which only runs once when a section is first added,
this runs every time the user changes to a variant that has a generator,
overwriting the existing configuration so the section matches the new variant.
Admin hook that regenerates the selected section's configuration when the user switches to a variant that defines its own defaults via
variantInitialConfig.Unlike
initialConfig, which only runs once when a section is first added, this runs every time the user changes to a variant that has a generator, overwriting the existing configuration so the section matches the new variant.