You are here

public static function FlippingBookIframeFormatter::defaultSettings in Flipping Book 8

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/FlippingBookIframeFormatter.php, line 27

Class

FlippingBookIframeFormatter
Plugin implementation of the 'flipping_book_iframe_formatter' formatter.

Namespace

Drupal\flipping_book\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $settings = parent::defaultSettings();
  $settings['width'] = '800px';
  $settings['height'] = '450px';
  $settings['class'] = 'flipping-book-iframe';
  return $settings;
}