getItemIdentifier

Function

Consistent means to get an item's identifier - either the slug or the id

  • getItemIdentifier(item: IItem, includeIdInSlug: boolean) : string

Parameters

Parameter Type Default Notes
item Required IItem
includeIdInSlug Optional boolean false

Returns

string

Function defined in common/src/items/getItemIdentifier.ts:10