Mode

final readonly class \TYPO3\CMS\Backend\CodeEditor\Mode

Represents a mode for CodeMirror

Table of Contents

Properties

$fileExtensions  : array
$formatCode  : string
$isDefault  : bool
$module  : JavaScriptModuleInstruction

Methods

__construct()  : mixed

Properties

$fileExtensions

public array $fileExtensions = []

Methods

__construct()

public __construct(JavaScriptModuleInstruction $module[, string $formatCode = '' ][, string[] $fileExtensions = [] ][, bool $isDefault = false ]) : mixed

Parameters

$module : JavaScriptModuleInstruction
$formatCode : string = ''
$fileExtensions : string[] = []

File extensions this mode is bound to

$isDefault : bool = false
On this page