Mode
Represents a mode for CodeMirror
Table of Contents
Properties
- $fileExtensions : array<string|int, mixed>
- $formatCode : string
- $isDefault : bool
- $module : JavaScriptModuleInstruction
Methods
- __construct() : mixed
- bindToFileExtensions() : Mode
- getBoundFileExtensions() : array<string|int, mixed>
- getFormatCode() : string
- getModule() : JavaScriptModuleInstruction
- isDefault() : bool
- setAsDefault() : Mode
- setFormatCode() : Mode
Properties
$fileExtensions
protected
array<string|int, mixed>
$fileExtensions
= []
$formatCode
protected
string
$formatCode
= ''
$isDefault
protected
bool
$isDefault
= false
$module
protected
JavaScriptModuleInstruction
$module
Methods
__construct()
public
__construct(JavaScriptModuleInstruction $module) : mixed
Parameters
- $module : JavaScriptModuleInstruction
bindToFileExtensions()
public
bindToFileExtensions(array<string|int, mixed> $fileExtensions) : Mode
Parameters
- $fileExtensions : array<string|int, mixed>
Return values
ModegetBoundFileExtensions()
public
getBoundFileExtensions() : array<string|int, mixed>
Return values
array<string|int, mixed>getFormatCode()
public
getFormatCode() : string
Return values
stringgetModule()
public
getModule() : JavaScriptModuleInstruction
Return values
JavaScriptModuleInstructionisDefault()
public
isDefault() : bool
Return values
boolsetAsDefault()
public
setAsDefault() : Mode
Return values
ModesetFormatCode()
public
setFormatCode(string $formatCode) : Mode
Parameters
- $formatCode : string