interface CodemirrorModeManagerInterface in The CodeMirror Editor 8
Interface for CodeMirror mode manager.
Hierarchy
- interface \Drupal\Component\Plugin\Discovery\DiscoveryInterface; interface \Drupal\Component\Plugin\Factory\FactoryInterface; interface \Drupal\Component\Plugin\Mapper\MapperInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
- interface \Drupal\codemirror_editor\CodemirrorModeManagerInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
Expanded class hierarchy of CodemirrorModeManagerInterface
All classes that implement CodemirrorModeManagerInterface
1 file declares its use of CodemirrorModeManagerInterface
- SettingsForm.php in src/
Form/ SettingsForm.php
File
- src/
CodemirrorModeManagerInterface.php, line 10
Namespace
Drupal\codemirror_editorView source
interface CodemirrorModeManagerInterface extends PluginManagerInterface {
/**
* Returns active language modes.
*
* @return string[]
* An array of active language modes.
*/
public function getActiveModes();
/**
* Normalizes language mode.
*
* @param string $mode
* Language mode to normalize.
*
* @return string
* Normalized language mode.
*/
public function normalizeMode($mode);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CodemirrorModeManagerInterface:: |
public | function | Returns active language modes. | 1 |
CodemirrorModeManagerInterface:: |
public | function | Normalizes language mode. | 1 |
DiscoveryInterface:: |
public | function | Gets a specific plugin definition. | 4 |
DiscoveryInterface:: |
public | function | Gets the definition of all plugins for this type. | 3 |
DiscoveryInterface:: |
public | function | Indicates if a specific plugin definition exists. | 2 |
FactoryInterface:: |
public | function | Creates a pre-configured instance of a plugin. | 7 |
MapperInterface:: |
public | function | Gets a preconfigured instance of a plugin. | 4 |