...
Getting the current context for the current request (current user most likely)
- Use this to tie data to a specific use of a tool in an area (probably a site or a section)
- Use the service variable to access the service and get the current context
Code Block java java String currentContext = toolManager.getCurrentPlacement().getContext();
- Note: The current context is probably the current site Id but do not depend on this
- Note: If you just need the current Placement then you can do this:
Code Block java java Placement currentPlacement = toolManager.getCurrentPlacement();