MediaWiki  1.33.0
CodeEditorHooks Class Reference

Static Public Member Functions

static editPageShowEditFormInitial (EditPage $editpage, OutputPage $output)
 
static getPageLanguage (Title $title, $model, $format)
 
static getPreferences (User $user, &$defaultPreferences)
 

Detailed Description

Definition at line 3 of file CodeEditorHooks.php.

Member Function Documentation

◆ editPageShowEditFormInitial()

static CodeEditorHooks::editPageShowEditFormInitial ( EditPage  $editpage,
OutputPage  $output 
)
static
Parameters
EditPage$editpage
OutputPage$output
Exceptions
ErrorPageError

Definition at line 47 of file CodeEditorHooks.php.

References $lang, $output, $title, EditPage\getContextTitle(), ExtensionRegistry\getInstance(), and getPageLanguage().

◆ getPageLanguage()

static CodeEditorHooks::getPageLanguage ( Title  $title,
  $model,
  $format 
)
static
Parameters
Title$title
string$model
string$format
Returns
null|string

Definition at line 10 of file CodeEditorHooks.php.

References $lang, $title, CONTENT_MODEL_CSS, CONTENT_MODEL_JAVASCRIPT, CONTENT_MODEL_JSON, and Hooks\run().

Referenced by editPageShowEditFormInitial().

◆ getPreferences()

static CodeEditorHooks::getPreferences ( User  $user,
$defaultPreferences 
)
static
Parameters
User$user
array&$defaultPreferences

Definition at line 35 of file CodeEditorHooks.php.


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