File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -366,7 +366,16 @@ export class DrupalJsonApiParams implements DrupalJsonApiParamsInterface {
366366 return key ;
367367 }
368368
369- private generateKeyName ( obj : any , proposedKey : string , enforceKeyName : boolean = false ) : string {
369+ /**
370+ * Generate a unique key name for the given object.
371+ *
372+ * @param obj The object to generate a key name for.
373+ * @param proposedKey The proposed key name.
374+ * @param enforceKeyName Whether to enforce the key name.
375+ *
376+ * @returns The generated key name.
377+ */
378+ protected generateKeyName ( obj : any , proposedKey : string , enforceKeyName : boolean = false ) : string {
370379 const length = Object . keys ( obj ) . length ;
371380 if ( enforceKeyName ) {
372381 for ( let ndx = 1 ; ndx <= length ; ndx ++ ) {
You can’t perform that action at this time.
0 commit comments