use context token

This commit is contained in:
Mads Rasmussen
2024-04-05 21:23:35 +02:00
parent f8a0b89a9b
commit 329aa09122

View File

@@ -1,3 +1,4 @@
import { UMB_ENTITY_CONTEXT } from './entity.context-token.js';
import { UmbContextBase } from '@umbraco-cms/backoffice/class-api';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
import { UmbStringState } from '@umbraco-cms/backoffice/observable-api';
@@ -21,7 +22,7 @@ export class UmbEntityContext extends UmbContextBase<UmbEntityContext> {
* @memberof UmbEntityContext
*/
constructor(host: UmbControllerHost) {
super(host, 'entity');
super(host, UMB_ENTITY_CONTEXT);
}
setEntityType(entityType: string | undefined) {