Library name of the content
Version the content is on
Version to upgrade the content to
Params of the content as a JSON string
id of the content that is to be upgraded
Load library to upgrade
Callback with error and result parameters
Check if params needs to be upgraded for the given field.
Run upgrade hooks on params.
Run content upgrade.
Handle content upgrades. Converts content of an older version to a newer version by running the registered upgrade hooks.
See
https://h5p.org/h5p-content-upgrade