function _setValueStateForControl(sValueState) {

		const oField = this.getParent();
		const oValueState = oField?.getValueStateForContent(this.getId());
		if (oValueState) {
			return oValueState.valueState;
		} else if (oField?.hasValueStateForContent()) {
			return ValueState.None; // there is a valueState on another control, show none.
		} else {
			return sValueState;
		}

	}
Object-based definition of the unit content type that is used in the {@link sap.ui.mdc.field.content.ContentFactory}.
This defines which controls to load and create for a given {@link sap.ui.mdc.enums.ContentMode}.
@namespace
@author SAP SE
@private
@ui5-restricted sap.ui.mdc
@since 1.87
@alias sap.ui.mdc.field.content.UnitContent
@extends sap.ui.mdc.field.content.DefaultContent