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
getByIdentifier()  : Mode
getDefaultMode()  : Mode
getInstance()  : self
isRegistered()  : bool
register()  : self
Registers modes for t3editor
unregister()  : self
Removes registered modes

Properties

$registeredModes

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

Methods

getInstance()

public static getInstance() : self
Deprecated

will be removed in TYPO3 v12.0. Use Dependency Injection or GeneralUtility::makeInstance() if DI is not possible.

Tags
throws
InvalidArgumentException
Return values
self

isRegistered()

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

register()

Registers modes for t3editor

public register(Mode $mode) : self
Parameters
$mode : Mode
Return values
self

unregister()

Removes registered modes

public unregister(string $identifier) : self
Parameters
$identifier : string
Return values
self

        
On this page

Search results