MCPcopy
hub / github.com/GrapesJS/grapesjs / get

Method get

packages/core/src/data_sources/index.ts:95–97  ·  view source on GitHub ↗

* Get data source. * @param {String} id Data source id. * @returns {[DataSource]} Data source. * @example * const ds = dsm.get('my_data_source_id');

(id: string)

Source from the content-addressed store, hash-verified

93 * const ds = dsm.get('my_data_source_id');
94 */
95 get(id: string) {
96 return this.all.get(id);
97 }
98
99 /**
100 * Return all data sources.

Callers 15

fromPathMethod · 0.95
pathMethod · 0.45
defaultValueMethod · 0.45
collectionIdMethod · 0.45
variableTypeMethod · 0.45
getPathMethod · 0.45
getCollectionIdMethod · 0.45
getVariableTypeMethod · 0.45
getDefaultValueMethod · 0.45
getRecordMethod · 0.45
getResolvedRecordsMethod · 0.45
dataResolverPropsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected