definePlugin
A plugin's default export must be what definePlugin returns.
| Field | Is |
|---|---|
name |
the plugin's name in Settings → Plugins; the only required field |
version |
shown beside the name |
sdk |
the SDK versions it works with: ^1.2 is 1.2.0 or any later 1.x, 1.2.3 only that version. A plugin that does not fit the interface's SDK is listed as Incompatible and not activated |
contributes |
nav, blades, widgets, search and propertyEditors (Extension points) |
activate(cms) |
called once, after the contributions are added, with the CMS services; not awaited |