updateVariant(mPropertyBag) {
			setAdaptationIdInPropertyBag(mPropertyBag);
			return setReferenceAndPersistencyKeyInPropertyBagAndCallFunction(mPropertyBag, CompVariantState.updateVariant);
		}
Updates a variant; this may result in an update of the variant or the creation of a change.
Either the <code>mPropertyBag.layer</code> or the <code>mPropertyBag.isUserDependent</code> should be provided for a proper layer determination.
In case updates for different layers are done, the update must be called for each layer separately.

@param {object} mPropertyBag - Object with parameters as properties
@param {string} mPropertyBag.reference - Flex reference of the application
@param {sap.ui.comp.smartvariants.SmartVariantManagement|
			sap.ui.comp.smartfilterbar.SmartFilterBar|
			sap.ui.comp.smarttable.SmartTable|
			sap.ui.comp.smartchart.SmartChart} mPropertyBag.control - Variant management control for which the variant should be updated
@param {string} mPropertyBag.id - ID of the variant
@param {string} [mPropertyBag.packageName] - ID of the package in which the update should be transported - only valid for sap-ui-layer=VENDOR use case
@param {string} [mPropertyBag.transportId] - ID of the transport in which the update should be assigned
@param {object} [mPropertyBag.name] - Title of the variant
@param {object} [mPropertyBag.content] - Content of the new change
@param {object} [mPropertyBag.favorite] - Flag if the variant should be flagged as a favorite
@param {boolean} [mPropertyBag.visible] - Flag if the variant should be set visible
@param {object} [mPropertyBag.executeOnSelection] - Flag if the variant should be executed on selection
@param {sap.ui.fl.Layer} [mPropertyBag.layer] - Layer in which the variant update takes place
@param {object} [mPropertyBag.changeSpecificData] - Map of parameters, see below
@param {boolean} [mPropertyBag.changeSpecificData.isUserDependent] - Flag if the variant is personalization only
this either updates the variant from the layer or writes a change to that layer.
@returns {sap.ui.fl.apply._internal.flexObjects.CompVariant} The updated variant
@private
@ui5-restricted sap.ui.rta.command, sap.ui.comp.smartvariants.SmartVariantManagement