function pluginDefinition(RED) {
    // Save a reference to the RED object so we can access it in other functions
    mod.RED = RED

    RED.plugins.registerPlugin('uib-runtime-plugin', {
        type: 'uibuilder-runtime-plugin', // optional plugin type
        onadd: onAdd,
    })
}
1) The function that defines the plugin
@param {runtimeRED} RED Node-RED's runtime object