ModeRegistry implements SingletonInterface
Registers and holds t3editor modes
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
$defaultMode
protected
Mode
$defaultMode
$registeredModes
protected
array<string|int, Mode>
$registeredModes
= []
Methods
getByFileExtension()
public
getByFileExtension(string $fileExtension) : Mode
Parameters
- $fileExtension : string
Tags
Return values
ModegetByFormatCode()
public
getByFormatCode(string $formatCode) : Mode
Parameters
- $formatCode : string
Tags
Return values
ModegetByIdentifier()
public
getByIdentifier(string $identifier) : Mode
Parameters
- $identifier : string
Tags
Return values
ModegetDefaultMode()
public
getDefaultMode() : Mode
Return values
ModegetInstance()
public
static getInstance() : self
will be removed in TYPO3 v12.0. Use Dependency Injection or GeneralUtility::makeInstance() if DI is not possible.
Tags
Return values
selfisRegistered()
public
isRegistered(string $identifier) : bool
Parameters
- $identifier : string
Return values
boolregister()
Registers modes for t3editor
public
register(Mode $mode) : self
Parameters
- $mode : Mode
Return values
selfunregister()
Removes registered modes
public
unregister(string $identifier) : self
Parameters
- $identifier : string