lib/jsdoc/transform-apijson-for-sdk.js
function ({name, type, className, text=name, local=false, hrefAppend=""}) {
		let sLink;

		// handling module's
		if (className !== undefined && (/^module:/.test(name) || /^module:/.test(className))) {
			name = name.replace(/^module:/, "");
		}

		name = encodeURIComponent(name);
		className = encodeURIComponent(className);

		// Build the link
 		sLink = type ? `${className}/${type}/${name}` : name;

		if (hrefAppend) {
			sLink += hrefAppend;
		}

		if (local) {
			return `<a target="_self" class="jsdoclink scrollTo${type === `events` ? `Event` : `Method`}" data-sap-ui-target="${name}" href="#/api/${sLink}">${text}</a>`;
		}

		return `<a target="_self" class="jsdoclink" href="#/api/${sLink}">${text}</a>`;
	}
function ({name, type, className, text=name, local=false, hrefAppend=""}) {
		let sLink;

		// handling module's
		if (className !== undefined && (/^module:/.test(name) || /^module:/.test(className))) {
			name = name.replace(/^module:/, "");
		}

		name = encodeURIComponent(name);
		className = encodeURIComponent(className);

		// Build the link
 		sLink = type ? `${className}/${type}/${name}` : name;

		if (hrefAppend) {
			sLink += hrefAppend;
		}

		if (local) {
			return `<a target="_self" class="jsdoclink scrollTo${type === `events` ? `Event` : `Method`}" data-sap-ui-target="${name}" href="#/api/${sLink}">${text}</a>`;
		}

		return `<a target="_self" class="jsdoclink" href="#/api/${sLink}">${text}</a>`;
	}
function ( { name , type , className , text = name , local = false , hrefAppend = "" } ) { let sLink ; // handling module's if ( className !== undefined && ( / ^module: / . test ( name ) || / ^module: / . test ( className ) ) ) { name = name . replace ( / ^module: / , "" ) ; } name = encodeURIComponent ( name ) ; className = encodeURIComponent ( className ) ; // Build the link sLink = type ? ` ${ className } ${ type } ${ name } ` : name ; if ( hrefAppend ) { sLink += hrefAppend ; } if ( local ) { return ` ${ type === ` ` ? ` ` : ` ` } ${ name } ${ sLink } ${ text } ` ; } return ` ${ sLink } ${ text } ` ; }
Creates a html link
@param {string} name
@param {string} type
@param {string} className
@param {string} [text=name] by default if no text is provided the name will be used
@param {boolean} [local=false]
@param {string} [hrefAppend=""]
@returns {string} link
Creates a html link