public static function IframeWidgetBase::defaultSettings in Iframe 8
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldWidget/IframeWidgetBase.php \Drupal\iframe\Plugin\Field\FieldWidget\IframeWidgetBase::defaultSettings()
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides PluginSettingsBase::defaultSettings
2 calls to IframeWidgetBase::defaultSettings()
- IframeWidgetBase::formElement in src/
Plugin/ Field/ FieldWidget/ IframeWidgetBase.php - It is .
- IframeWidgetBase::settingsForm in src/
Plugin/ Field/ FieldWidget/ IframeWidgetBase.php - It is .
File
- src/
Plugin/ Field/ FieldWidget/ IframeWidgetBase.php, line 30
Class
- IframeWidgetBase
- Plugin implementation base functions.
Namespace
Drupal\iframe\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
return [
'width' => '',
'height' => '',
'class' => '',
'expose_class' => 0,
'frameborder' => '0',
'scrolling' => 'auto',
'transparency' => '0',
'tokensupport' => '0',
'allowfullscreen' => '0',
] + parent::defaultSettings();
}