public function WebformCodeMirror::getInfo in Webform 8.5
Same name and namespace in other branches
- 6.x src/Element/WebformCodeMirror.php \Drupal\webform\Element\WebformCodeMirror::getInfo()
Returns the element properties for this element.
Return value
array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.
Overrides Textarea::getInfo
File
- src/
Element/ WebformCodeMirror.php, line 43
Class
- WebformCodeMirror
- Provides a webform element for using CodeMirror.
Namespace
Drupal\webform\ElementCode
public function getInfo() {
$class = get_class($this);
return [
'#input' => TRUE,
'#mode' => 'text',
'#skip_validation' => FALSE,
'#decode_value' => FALSE,
'#cols' => 60,
'#rows' => 5,
'#wrap' => TRUE,
'#resizable' => 'vertical',
'#process' => [
[
$class,
'processWebformCodeMirror',
],
[
$class,
'processAjaxForm',
],
[
$class,
'processGroup',
],
],
'#pre_render' => [
[
$class,
'preRenderWebformCodeMirror',
],
[
$class,
'preRenderGroup',
],
],
'#theme' => 'textarea',
'#theme_wrappers' => [
'form_element',
],
];
}