get State
Returns the settings as an Element.
If loadState succeeded, this returns the serialization of settings, including any changes made by the user. However, if loadState was not successful, then user changes are truncated, and the original state that was passed to loadState is returned instead.
You should not modify the returned value. To modify settings, use settings instead.