debug helper methods
This commit is contained in:
@@ -84,6 +84,9 @@ export abstract class UmbBlockEntriesContext<
|
||||
layoutOf(contentUdi: string) {
|
||||
return this._layoutEntries.asObservablePart((source) => source.find((x) => x.contentUdi === contentUdi));
|
||||
}
|
||||
getLayoutOf(contentUdi: string) {
|
||||
return this._layoutEntries.getValue().find((x) => x.contentUdi === contentUdi);
|
||||
}
|
||||
setLayouts(layouts: Array<BlockLayoutType>) {
|
||||
return this._layoutEntries.setValue(layouts);
|
||||
}
|
||||
|
||||
@@ -79,6 +79,10 @@ export abstract class UmbBlockManagerContext<
|
||||
setLayouts(layouts: Array<BlockLayoutType>) {
|
||||
this._layouts.setValue(layouts);
|
||||
}
|
||||
// TODO: Remove this as it is just for debug purpose...?
|
||||
getLayouts(): Array<BlockLayoutType> {
|
||||
return this._layouts.getValue();
|
||||
}
|
||||
setContents(contents: Array<UmbBlockDataType>) {
|
||||
this.#contents.setValue(contents);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user