File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -908,9 +908,15 @@ export class NextDrupal extends NextDrupalBase {
908908 /**
909909 * Translates a path to a DrupalTranslatedPath object.
910910 *
911- * @param {string } path The path to translate .
911+ * @param {string } path The resource path. Example: `/blog/slug-for-article` .
912912 * @param {JsonApiWithAuthOption & JsonApiWithNextFetchOptions } options Options for the request.
913913 * @returns {Promise<DrupalTranslatedPath | null> } The translated path.
914+ * @requires Decoupled Router module
915+ * @example
916+ * Get info about a `/blog/slug-for-article` path
917+ * ```ts
918+ * const path = await drupal.translatePath("/blog/slug-for-article")
919+ * ```
914920 */
915921 async translatePath (
916922 path : string ,
You can’t perform that action at this time.
0 commit comments