The attach-interface-for-callback function changes the interface that is passed when a callback is made.
attach-interface-for-callback
capi
attach-interface-for-callback element interface
Callbacks for element get passed interface instead of element 's parent interface.
callbacks element element-interface-for-callback interface