public function TextareaWidget::defaultConfiguration in Typed Data API enhancements 8
Gets default configuration for this plugin.
Return value
array An associative array with the default configuration.
Overrides FormWidgetBase::defaultConfiguration
File
- src/
Plugin/ TypedDataFormWidget/ TextareaWidget.php, line 32
Class
- TextareaWidget
- Plugin implementation of the 'textarea' widget.
Namespace
Drupal\typed_data\Plugin\TypedDataFormWidgetCode
public function defaultConfiguration() {
return parent::defaultConfiguration() + [
'label' => NULL,
'description' => NULL,
'placeholder' => NULL,
'rows' => 5,
'cols' => 60,
'resizable' => 'both',
];
}