You are here

protected static property YamlFormCodeMirror::$modes in YAML Form 8

An associative array of supported CodeMirror modes by type and mime-type.

Type: array

File

src/Element/YamlFormCodeMirror.php, line 22

Class

YamlFormCodeMirror
Provides a form element for HTML, YAML, or Plain text using CodeMirror.

Namespace

Drupal\yamlform\Element

Code

protected static $modes = [
  'css' => 'text/css',
  'html' => 'text/html',
  'javascript' => 'text/javascript',
  'text' => 'text/plain',
  'yaml' => 'text/x-yaml',
];