UDataLayerEditorSubsystem::ToggleDataLayerIsLoadedInEditor

Toggles the DataLayer's IsLoadedInEditor flag