CodeEditorConfiguration
class \
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.
Internal
Table of Contents
Methods
- __construct() : mixed
- getAddons() : Addon[]
- getAddonSettings() : array
- Options of all addons, merged in definition order
- getDefaultMode() : Mode
- getModeByFileExtension() : Mode
- getModeByFormatCode() : Mode
- getModes() : Mode[]
- hasMode() : bool
Methods
__construct()
public
__construct(PackageManager $packageManager, FrontendInterface $assetsCache, string $cacheIdentifier) : mixed
Parameters
- $packageManager : PackageManager
- $assetsCache : FrontendInterface
- $cacheIdentifier : string
getAddons()
public
getAddons() : Addon[]
Return values
Addon[]getAddonSettings()
Options of all addons, merged in definition order
public
getAddonSettings() : array
Return values
arraygetDefaultMode()
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() : Mode[]
Return values
Mode[] —Modes with their format code as key
hasMode()
public
hasMode(string $formatCode) : bool
Parameters
- $formatCode : string