Content path mapper
: shell
: file-content-store
: id-to-path-map
: /modules/core/content/services/content-path-mapper.js
ContentPathMapper
Kind: global class
- ContentPathMapper
- new ContentPathMapper()
- .mapIdToPath(root, id) ⇒
Array.<string>
new ContentPathMapper()
Maps a content item's id to the list of file paths that could possibly have descriptions of the item.
contentPathMapper.mapIdToPath(root, id) ⇒ Array.<string>
Maps a content item's id to the list of file paths that could possibly have descriptions of the item.
Kind: instance method of ContentPathMapper
Returns: Array.<string> - The list of possible paths for a file describing the item.
| Param | Type | Description |
|---|---|---|
| root | string |
The content root for this item (content, widget, etc.). |
| id | string |
The item's id under the root. |