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

Function generateContentKey

packages/decap-cms-lib-util/src/APIUtils.ts:23–25  ·  view source on GitHub ↗
(collectionName: string, slug: string)

Source from the content-addressed store, hash-verified

21}
22
23export function generateContentKey(collectionName: string, slug: string) {
24 return `${collectionName}/${slug}`;
25}
26
27export function parseContentKey(contentKey: string) {
28 const index = contentKey.indexOf('/');

Callers 15

unpublishedEntryMethod · 0.90
getBranchMethod · 0.90
getStatusesMethod · 0.90
editorialWorkflowGitMethod · 0.90
localGitMiddlewareFunction · 0.90
generateContentKeyMethod · 0.90
generateContentKeyMethod · 0.90
unpublishedEntryMethod · 0.90
getBranchMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected