You are here

public static function IframeDefaultFormatter::defaultSettings in Iframe 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/IframeDefaultFormatter.php \Drupal\iframe\Plugin\Field\FieldFormatter\IframeDefaultFormatter::defaultSettings()

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/FieldFormatter/IframeDefaultFormatter.php, line 28

Class

IframeDefaultFormatter
Class IframeDefaultFormatter.

Namespace

Drupal\iframe\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'url' => '',
    'title' => '',
    'width' => '',
    'height' => '',
    'class' => '',
    'frameborder' => '0',
    'scrolling' => '',
    'transparency' => '0',
    'tokensupport' => '0',
    'allowfullscreen' => '0',
  ] + parent::defaultSettings();
}