Skip to content

Commit 345220e

Browse files
committed
feat: add getContents() method
1 parent 7caf006 commit 345220e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/packages/block/block/context/block-manager.context.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ export abstract class UmbBlockManagerContext<
9191
setContents(contents: Array<UmbBlockDataModel>) {
9292
this.#contents.setValue(contents);
9393
}
94+
getContents() {
95+
return this.#contents.value;
96+
}
9497
setSettings(settings: Array<UmbBlockDataModel>) {
9598
this.#settings.setValue(settings);
9699
}

0 commit comments

Comments
 (0)