You are here

interface CodemirrorModeManagerInterface in The CodeMirror Editor 8

Interface for CodeMirror mode manager.

Hierarchy

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_editor
View 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

Namesort descending Modifiers Type Description Overrides
CodemirrorModeManagerInterface::getActiveModes public function Returns active language modes. 1
CodemirrorModeManagerInterface::normalizeMode public function Normalizes language mode. 1
DiscoveryInterface::getDefinition public function Gets a specific plugin definition. 4
DiscoveryInterface::getDefinitions public function Gets the definition of all plugins for this type. 3
DiscoveryInterface::hasDefinition public function Indicates if a specific plugin definition exists. 2
FactoryInterface::createInstance public function Creates a pre-configured instance of a plugin. 7
MapperInterface::getInstance public function Gets a preconfigured instance of a plugin. 4