This method will return the currently available modes considering the site's state (published or draft).
Array list of modeState names.
Switch to given mode if authorized. Closes current mode and related toolbox.
The mode to switch to
Optional
Callback when the mode is closed
This method will return the currently available modes considering the site's state (published or draft).