- Merge request !43Issue #3263552: How to programmatically set an active context → (Open) created by loze
- 🇺🇸United States loze Los Angeles
Changed setActiveContext($name) to setActiveContexts($context_names);
Added unsetActiveContexts($context_names);
Added isActiveContext($name); The changes worked for me. I'm just wondering if maybe there should be some tests made for this code because it's not used by any other code and someone might potentially delete it in the future. So I'll leave it as Needs Review for now, just so people can debate this a bit.
- First commit to issue fork.
- 🇸🇮Slovenia agile-mark-l
I have submitted a commit that removes an unnecessary newline in the ContextManager.php file.
Additionally, I have written basic kernel tests to validate the new functionality implemented in this issue. - 🇺🇸United States loze Los Angeles
Thanks for the test @agile-mark-l this looks good.