protected function N1EDEcosystemCKEditorPlugin::addStringToForm in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8
File
- src/
Plugin/ N1EDEcosystemCKEditorPlugin.php, line 144
Class
- N1EDEcosystemCKEditorPlugin
- Defines plugin.
Namespace
Drupal\n1ed\PluginCode
protected function addStringToForm(&$form, $settings, $param, $default) {
$form[$param] = array(
'#type' => 'textfield',
'#title' => $param,
'#title_display' => 'invisible',
'#default_value' => $this
->getConfigParam($settings, $param, $default, 'string'),
'#attributes' => array(
'style' => 'display: none!important',
'data-n1ed-eco-param-name' => $param,
'data-n1ed-eco-param-type' => 'string',
'data-n1ed-eco-param-default' => $default,
),
);
}