Site icon Hip-Hop Website Design and Development

How one can lock innerBlocks inside a block variation?

I’m making an attempt to create a brand new group block that features one core/heading block after which one core/gallery block. I don’t want editors to have the ability to add different inside blocks to the group. Nor do I would like editors to have the ability to delete both of the heading or gallery blocks.

Right here is my block variation thus far:

    wp.blocks.registerBlockVariation("core/group", {
        title: "logo-grid",
        title: "Logo Grid",
        description: "",
        class: "media",
        icon: "smiley",
        scope: ["inserter"],
        attributes: {
        },
        innerBlocks: [
            ["core/heading", { level: 2, placeholder: "Heading" }],
            ["core/gallery"],
        ],
    });

I’ve seemed into templateLock and template_lock and lock attributes however none appear to use to dam variations?

I notice I could also be utilizing the unsuitable device for the job by making an attempt to create a block variation with this performance. Any recommendation for find out how to obtain what I would like?