MCPcopy Create free account
hub / github.com/decaporg/decap-cms / getEntryValue

Method getEntryValue

packages/decap-cms-core/src/backend.ts:970–983  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

968 const extension = selectFolderEntryExtension(collection);
969
970 const getEntryValue = async (path: string) => {
971 const loadedEntry = await this.implementation.getEntry(path);
972 let entry = createEntry(collection.get('name'), slug, loadedEntry.file.path, {
973 raw: loadedEntry.data,
974 label,
975 mediaFiles: [],
976 meta: { path: prepareMetaPath(loadedEntry.file.path, collection) },
977 });
978
979 entry = this.entryWithFormat(collection)(entry);
980 entry = await this.processEntry(state, collection, entry);
981
982 return entry;
983 };
984
985 let entryValue: EntryValue;
986 if (hasI18n(collection)) {

Callers

nothing calls this directly

Calls 6

entryWithFormatMethod · 0.95
processEntryMethod · 0.95
createEntryFunction · 0.90
prepareMetaPathFunction · 0.85
getMethod · 0.80
getEntryMethod · 0.45

Tested by

no test coverage detected