src/sap.ui.fl/src/sap/ui/fl/ControlPersonalizationAPI.js
function(aControls, aChangeTypes) {
			if (!aControls || aControls.length === 0) {
				return this._reject("At least one control ID has to be provided as a parameter");
			}

			var oAppComponent = aControls[0].appComponent || Utils.getAppComponentForControl(aControls[0]);

			if (!oAppComponent) {
				return this._reject("App Component could not be determined");
			}

			var aIdsOfPassedControls = aControls.map(function (oControl) {
				return oControl.id || oControl.getId();
			});

			var oFlexController = FlexControllerFactory.createForControl(oAppComponent);
			return oFlexController.getComponentChanges({currentLayer: "USER", includeCtrlVariants: true})
			.then(function (aChanges) {
				return aChanges
					.filter(this._filterBySelectors.bind(this, oAppComponent, aIdsOfPassedControls))
					.filter(this._filterByChangeType.bind(this, aChangeTypes))
					.some(this._ifValidFileType);
			}.bind(this));
		}
function(aControls, aChangeTypes) {
			if (!aControls || aControls.length === 0) {
				return this._reject("At least one control ID has to be provided as a parameter");
			}

			var oAppComponent = aControls[0].appComponent || Utils.getAppComponentForControl(aControls[0]);

			if (!oAppComponent) {
				return this._reject("App Component could not be determined");
			}

			var aIdsOfPassedControls = aControls.map(function (oControl) {
				return oControl.id || oControl.getId();
			});

			var oFlexController = FlexControllerFactory.createForControl(oAppComponent);
			return oFlexController.getComponentChanges({currentLayer: "USER", includeCtrlVariants: true})
			.then(function (aChanges) {
				return aChanges
					.filter(this._filterBySelectors.bind(this, oAppComponent, aIdsOfPassedControls))
					.filter(this._filterByChangeType.bind(this, aChangeTypes))
					.some(this._ifValidFileType);
			}.bind(this));
		}
function ( aControls , aChangeTypes ) { if ( ! aControls || aControls . length === 0 ) { return this . _reject ( "At least one control ID has to be provided as a parameter" ) ; } var oAppComponent = aControls [ 0 ] . appComponent || Utils . getAppComponentForControl ( aControls [ 0 ] ) ; if ( ! oAppComponent ) { return this . _reject ( "App Component could not be determined" ) ; } var aIdsOfPassedControls = aControls . map ( function ( oControl ) { return oControl . id || oControl . getId ( ) ; } ) ; var oFlexController = FlexControllerFactory . createForControl ( oAppComponent ) ; return oFlexController . getComponentChanges ( { currentLayer : "USER" , includeCtrlVariants : true } ) . then ( function ( aChanges ) { return aChanges . filter ( this . _filterBySelectors . bind ( this , oAppComponent , aIdsOfPassedControls ) ) . filter ( this . _filterByChangeType . bind ( this , aChangeTypes ) ) . some ( this . _ifValidFileType ) ; } . bind ( this ) ) ; }
Checks if personalization changes exists for control.

@param {sap.ui.core.Element[] | map[]} aControls - an array of instances of controls, a map with control IDs including a app component or a mixture for which personalization exists
@param {array} [aChangeTypes] - Types of changes that have existing personalization.
@param {sap.ui.core.Component} aControls.appComponent - Application component of the controls at runtime in case a map has been used
@param {string} aControls.id - ID of the control in case a map has been used to specify the control

@returns {Promise} Promise resolving with true if personalization changes exists, otherwise false.

@method sap.ui.fl.ControlPersonalizationAPI.isPersonalized
@public
Checks if personalization changes exists for control .