ModeRegistry implements SingletonInterface

Registers and holds code editor modes

Internal

Table of Contents

Interfaces

SingletonInterface
"empty" interface for singletons (marker interface pattern)

Properties

$defaultMode  : Mode
$registeredModes  : array<string|int, Mode>

Methods

getByFileExtension()  : Mode
getByFormatCode()  : Mode
getDefaultMode()  : Mode
isRegistered()  : bool
register()  : ModeRegistry
Registers modes for code editor
unregister()  : ModeRegistry
Removes registered modes

Properties

$registeredModes

protected array<string|int, Mode> $registeredModes = []

Methods

isRegistered()

public isRegistered(string $formatCode) : bool
Parameters
$formatCode : string
Return values
bool

        
On this page

Search results