public static function SignaturePadWidget::defaultSettings in SignatureField 1.x
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides PluginSettingsBase::defaultSettings
File
- src/
Plugin/ Field/ FieldWidget/ SignaturePadWidget.php, line 26
Class
- SignaturePadWidget
- Provides the signature pad widget for the signature field.
Namespace
Drupal\signaturefield\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
return [
'width' => 400,
'height' => 200,
'pen_color' => 'black',
'background_color' => 'rgba(0, 0, 0, 0)',
] + parent::defaultSettings();
}