isSlug
Determine if an identifier is a Hub API slug
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
identifier Required | string |
Hub API slug ({orgKey}::{title-as-slug} or {title-as-slug}) or record id ((itemId}_{layerId} or {itemId}) |
Returns
true if the identifier is valid and is not a record id
boolean
Function defined in common/src/content/slugs.ts:28