Skip to content

Commit ba91232

Browse files
committed
remove umbraco-package json
1 parent 0e678a9 commit ba91232

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

16/umbraco-cms/customizing/extending-overview/extension-types/entity-actions.md

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -54,27 +54,8 @@ To register an Entity Action in Umbraco, you first need to create an `umbraco-pa
5454
You can find detailed guidance on creating and configuring the package manifest here:
5555
[Umbraco Extension Registry Documentation](https://docs.umbraco.com/umbraco-cms/customizing/extending-overview/extension-registry/extension-registry)
5656

57-
**`umbraco-package.json`**
58-
```json
59-
{
60-
"$schema": "../../umbraco-package-schema.json",
61-
"name": "My entity action",
62-
"version": "1.0.0",
63-
"extensions": [
64-
{
65-
"type": "backofficeEntryPoint",
66-
"alias": "My.EntityAction.EntryPoint",
67-
"name": "My entity action EntryPoint",
68-
"js": "/App_Plugins/my-entity-action/my-entity-action.js"
69-
}
70-
]
71-
}
72-
```
73-
74-
**`my-entity-action.ts`**
7557
```typescript
76-
import type { UmbEntryPointOnInit } from '@umbraco-cms/backoffice/extension-api';
77-
import { MyEntityAction } from './entity-action.api.js';
58+
import { MyEntityAction } from './entity-action';
7859

7960
const manifest = {
8061
type: 'entityAction',
@@ -89,12 +70,8 @@ const manifest = {
8970
repositoryAlias: 'My.Repository',
9071
},
9172
};
92-
export const onInit: UmbEntryPointOnInit = (_host, umbExtensionsRegistry) => {
93-
umbExtensionsRegistry.register(manifest); // Register the extension
94-
}
9573
```
9674

97-
**`my-entity-action.api.ts`**
9875
```typescript
9976
import { UmbEntityActionBase } from '@umbraco-cms/backoffice/entity-action';
10077

0 commit comments

Comments
 (0)