You are here

public static function LinkIframeFormatter::defaultSettings in Link iframe formatter 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Field/FieldFormatter/LinkIframeFormatter.php \Drupal\link_iframe_formatter\Plugin\Field\FieldFormatter\LinkIframeFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides LinkFormatter::defaultSettings

File

src/Plugin/Field/FieldFormatter/LinkIframeFormatter.php, line 25

Class

LinkIframeFormatter
Plugin implementation of the 'link_iframe_formatter' formatter.

Namespace

Drupal\link_iframe_formatter\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'width' => 640,
    'height' => 480,
    'class' => '',
    'original' => FALSE,
  ];
}