ModeRegistry implements SingletonInterface

Registers and holds t3editor 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 t3editor
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