MobileFrontend
Mobile optimised frontend for MediaWiki
Loading...
Searching...
No Matches
MobileFrontendEditorHooks Class Reference

Static Public Member Functions

static getResourceLoaderMFConfigVars ()
 Generate config for usage inside MobileFrontend This should be used for variables which:
 
static onMakeGlobalVariablesScript (array &$vars, OutputPage $out)
 Handler for MakeGlobalVariablesScript hook.
 
static onResourceLoaderRegisterModules (ResourceLoader $resourceLoader)
 ResourceLoaderRegisterModules hook handler.
 

Static Protected Member Functions

static isPageContentModelEditable (Title $title)
 Checks whether the editor can handle the existing content handler type.
 

Member Function Documentation

◆ getResourceLoaderMFConfigVars()

static MobileFrontendEditorHooks::getResourceLoaderMFConfigVars ( )
static

Generate config for usage inside MobileFrontend This should be used for variables which:

  • vary with the html
  • variables that should work cross skin including anonymous users
  • used for both, stable and beta mode (don't use MobileContext::isBetaGroupMember in this function - T127860)
Returns
array

◆ isPageContentModelEditable()

static MobileFrontendEditorHooks::isPageContentModelEditable ( Title $title)
staticprotected

Checks whether the editor can handle the existing content handler type.

Parameters
Title$title
Returns
bool

◆ onMakeGlobalVariablesScript()

static MobileFrontendEditorHooks::onMakeGlobalVariablesScript ( array & $vars,
OutputPage $out )
static

Handler for MakeGlobalVariablesScript hook.

For values that depend on the current page, user or request state.

See also
https://www.mediawiki.org/wiki/Manual:Hooks/MakeGlobalVariablesScript
Parameters
array&$varsVariables to be added into the output
OutputPage$outOutputPage instance calling the hook

◆ onResourceLoaderRegisterModules()

static MobileFrontendEditorHooks::onResourceLoaderRegisterModules ( ResourceLoader $resourceLoader)
static

ResourceLoaderRegisterModules hook handler.

Registers:

  • Modules for the Visual Editor overlay, if the VisualEditor extension is loaded
See also
https://www.mediawiki.org/wiki/Manual:Hooks/ResourceLoaderRegisterModules
Parameters
ResourceLoader$resourceLoader

The documentation for this class was generated from the following file: