CodeEditorConfiguration
Provides the modes and addons defined by all active packages in "Configuration/Backend/T3editor/Modes.php" and "Configuration/Backend/T3editor/Addons.php".
The compiled definitions are stored in the assets cache.
Table of Contents
Methods
- __construct() : mixed
- getAddons() : array<string|int, Addon>
- getAddonSettings() : array<string|int, mixed>
- Options of all addons, merged in definition order
- getDefaultMode() : Mode
- getModeByFileExtension() : Mode
- getModeByFormatCode() : Mode
- getModes() : array<string|int, Mode>
- hasMode() : bool
Methods
__construct()
public
__construct(PackageManager $packageManager, FrontendInterface $assetsCache, string $cacheIdentifier) : mixed
Parameters
- $packageManager : PackageManager
- $assetsCache : FrontendInterface
- $cacheIdentifier : string
getAddons()
public
getAddons() : array<string|int, Addon>
Return values
array<string|int, Addon>getAddonSettings()
Options of all addons, merged in definition order
public
getAddonSettings() : array<string|int, mixed>
Return values
array<string|int, mixed>getDefaultMode()
public
getDefaultMode() : Mode
Tags
Return values
ModegetModeByFileExtension()
public
getModeByFileExtension(string $fileExtension) : Mode
Parameters
- $fileExtension : string
Tags
Return values
ModegetModeByFormatCode()
public
getModeByFormatCode(string $formatCode) : Mode
Parameters
- $formatCode : string
Tags
Return values
ModegetModes()
public
getModes() : array<string|int, Mode>
Return values
array<string|int, Mode> —Modes with their format code as key
hasMode()
public
hasMode(string $formatCode) : bool
Parameters
- $formatCode : string