nl_tokens: Normalize display page information input : { <pagePath > : pageInfo } output : { <pageName > : pageInfo }
pl_tokens: function normalizeDisplayPages ( pages ) { if ( ! pages ) { return ; } let result = { } ; Object . keys ( pages ) . forEach ( k => { let item = <mask> [ k ] ; let { pageName } = getPageInfo ( k ) ; result [ pageName ] = item ; } ) ; return result ; }