MCPcopy Create free account
hub / github.com/UI5/webcomponents / getCollection

Function getCollection

packages/base/src/asset-registries/Illustrations.ts:90–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88const illustrationPromises = getSharedResource<Map<string, Promise<UnsafeIllustrationData>>>("SVGIllustration.promises", new Map());
89
90const getCollection = () => {
91 const theme = getTheme();
92
93 if (IllustrationCollections.has(theme)) {
94 return IllustrationCollections.get(theme);
95 }
96
97 return FALLBACK_COLLECTION;
98};
99
100/**
101 * Processes the name of the illustration

Callers 1

processNameFunction · 0.85

Calls 2

getMethod · 0.80
getThemeFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…