protected static property WebformCodeMirror::$modes in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Element/WebformCodeMirror.php \Drupal\webform\Element\WebformCodeMirror::modes
An associative array of supported CodeMirror modes by type and mime-type.
Type: array
File
- src/
Element/ WebformCodeMirror.php, line 29
Class
- WebformCodeMirror
- Provides a webform element for using CodeMirror.
Namespace
Drupal\webform\ElementCode
protected static $modes = [
'css' => 'text/css',
'html' => 'text/html',
'htmlmixed' => 'htmlmixed',
'javascript' => 'text/javascript',
'text' => 'text/plain',
'yaml' => 'text/x-yaml',
'php' => 'text/x-php',
'twig' => 'twig',
];