## Summary
We need as way to know if the #mobilefrontend editor could be loaded for a given page for {T407377}.
## Background
- #confirmedit needs to add a JS configuration variable which will be used early in the #mobilefrontend edit cycle
-- Therefore, this needs to be loaded on page views and as such we will be using a hook (`MakeGlobalVariablesScript`) which is documented as expensive due to the content in it being sent back before the page content
- We therefore should not load the JS configuration variable unless it definitely could be needed
-- This includes not adding the variable if #mobilefrontend is not available for the current page view but still installed
- Currently only a #mobilefrontend [[ https://gerrit.wikimedia.org/g/mediawiki/extensions/MobileFrontend/+/ed99f692ac1122590f41a7c129a4ed8e396a20bc/includes/MobileFrontendEditorHooks.php#125 | static protected function ]] can be used to determine this
-- While we could replicate the logic in #confirmedit, it seems more stable to add this static method in some kind of service in a non-static way
## Acceptance criteria
- [ ] A method exists to know if #mobilefrontend could be used in the page returned for a given request, that #confirmedit can make use of for T407377