src/sap.ui.core/src/sap/ui/core/theming/Parameters.js
function getParam(mOptions) {
			var oParams = getParameters();
			if (mOptions.scopeName) {
				oParams = oParams["scopes"][mOptions.scopeName];
			} else {
				oParams = oParams["default"];
			}

			var sParam = oParams[mOptions.parameterName];

			if (typeof sParam === "undefined" && typeof mOptions.parameterName === "string") {
				// compatibility for theming parameters with colon
				var iIndex = mOptions.parameterName.indexOf(":");
				if (iIndex !== -1) {
					mOptions.parameterName = mOptions.parameterName.substr(iIndex + 1);
				}
				sParam = oParams[mOptions.parameterName];
			}

			if (mOptions.loadPendingParameters && typeof sParam === "undefined") {
				loadPendingLibraryParameters();
				sParam = getParam({
					parameterName: mOptions.parameterName,
					scopeName: mOptions.scopeName,
					loadPendingParameters: false // prevent recursion
				});
			}

			return sParam;
		}
function getParam(mOptions) {
			var oParams = getParameters();
			if (mOptions.scopeName) {
				oParams = oParams["scopes"][mOptions.scopeName];
			} else {
				oParams = oParams["default"];
			}

			var sParam = oParams[mOptions.parameterName];

			if (typeof sParam === "undefined" && typeof mOptions.parameterName === "string") {
				// compatibility for theming parameters with colon
				var iIndex = mOptions.parameterName.indexOf(":");
				if (iIndex !== -1) {
					mOptions.parameterName = mOptions.parameterName.substr(iIndex + 1);
				}
				sParam = oParams[mOptions.parameterName];
			}

			if (mOptions.loadPendingParameters && typeof sParam === "undefined") {
				loadPendingLibraryParameters();
				sParam = getParam({
					parameterName: mOptions.parameterName,
					scopeName: mOptions.scopeName,
					loadPendingParameters: false // prevent recursion
				});
			}

			return sParam;
		}
function getParam ( mOptions ) { var oParams = getParameters ( ) ; if ( mOptions . scopeName ) { oParams = oParams [ "scopes" ] [ mOptions . scopeName ] ; } else { oParams = oParams [ "default" ] ; } var sParam = oParams [ mOptions . parameterName ] ; if ( typeof sParam === "undefined" && typeof mOptions . parameterName === "string" ) { // compatibility for theming parameters with colon var iIndex = mOptions . parameterName . indexOf ( ":" ) ; if ( iIndex !== - 1 ) { mOptions . parameterName = mOptions . parameterName . substr ( iIndex + 1 ) ; } sParam = oParams [ mOptions . parameterName ] ; } if ( mOptions . loadPendingParameters && typeof sParam === "undefined" ) { loadPendingLibraryParameters ( ) ; sParam = getParam ( { parameterName : mOptions . parameterName , scopeName : mOptions . scopeName , loadPendingParameters : false // prevent recursion } ) ; } return sParam ; }
Returns parameter value from given map and handles legacy parameter names

@param {object} mOptions options map
@param {string} mOptions.parameterName Parameter name / key
@param {string} mOptions.scopeName Scope name
@param {boolean} mOptions.loadPendingParameters If set to "true" and no parameter value is found,
all pending parameters will be loaded (see Parameters._addLibraryTheme)
@returns {string} parameter value or undefined
@private
Returns parameter value from given map and handles legacy parameter names