Skip to content

Commit 77fcff1

Browse files
authored
Merge pull request #7042 from BatJan/patch-138909
Update backoffice-entry-point.md
2 parents 08c3931 + 2bc4954 commit 77fcff1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

15/umbraco-cms/customizing/extending-overview/extension-types/backoffice-entry-point.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: The Backoffice Entry Point extension type is used to run some JavaS
44

55
# Backoffice Entry Point
66

7-
This manifest declares a single JavaScript file that will be loaded and run when the Backoffice starts. In other words this can be used as an entry point for a package.
7+
This manifest declares a single JavaScript file that will be loaded and run when the Backoffice starts. In other words, this can be used as an entry point for a package.
88

99
The `backofficeEntryPoint` extension is also the way to go if you want to load in external libraries such as jQuery, Angular, React, etc. You can use the `backofficeEntryPoint` to load in the external libraries to be shared by all your extensions. Additionally, **global CSS files** can also be used in the `backofficeEntryPoint` extension.
1010

@@ -43,14 +43,14 @@ import type { UmbEntryPointOnInit } from '@umbraco-cms/backoffice/extension-api'
4343
/**
4444
* Perform any initialization logic when the Backoffice starts
4545
*/
46-
export const onInit: UmbEntryPointOnInit = (host, extensionsRegistry) => {
46+
export const onInit: UmbEntryPointOnInit = (host, extensionRegistry) => {
4747
// Your initialization logic here
4848
}
4949

5050
/**
5151
* Perform any cleanup logic when the Backoffice and/or the package is unloaded
5252
*/
53-
export const onUnload: UmbEntryPointOnUnload = (host, extensionsRegistry) => {
53+
export const onUnload: UmbEntryPointOnUnload = (host, extensionRegistry) => {
5454
// Your cleanup logic here
5555
}
5656
```
@@ -78,14 +78,14 @@ const manifest: UmbExtensionManifest = {
7878
}
7979
};
8080

81-
export const onInit: UmbEntryPointOnInit = (host, extensionsRegistry) => {
81+
export const onInit: UmbEntryPointOnInit = (host, extensionRegistry) => {
8282
// Register the extension
8383
extensionRegistry.register(manifest);
8484
}
8585

86-
export const onUnload: UmbEntryPointOnUnload = (host, extensionsRegistry) => {
86+
export const onUnload: UmbEntryPointOnUnload = (host, extensionRegistry) => {
8787
// Unregister the extension (optional)
88-
extension.unregister(manifest);
88+
extensionRegistry.unregister(manifest);
8989
}
9090
```
9191
{% endcode %}
@@ -139,7 +139,7 @@ const manifests: Array<UmbExtensionManifest> = [
139139
...
140140
];
141141

142-
export const onInit: UmbEntryPointOnInit = (host, extensionsRegistry) => {
142+
export const onInit: UmbEntryPointOnInit = (host, extensionRegistry) => {
143143
// Register the extensions
144144
extensionRegistry.registerMany(manifests);
145145
}

0 commit comments

Comments
 (0)