You are here

public function CodemirrorModeDefault::label in The CodeMirror Editor 8

Returns the plugin label.

Return value

string The label of the language mode.

Overrides CodemirrorModeInterface::label

File

src/CodemirrorModeDefault.php, line 15

Class

CodemirrorModeDefault
Default class used for CodeMirror mode plugins.

Namespace

Drupal\codemirror_editor

Code

public function label() {
  return $this->pluginDefinition['label'];
}