You are here

public static function Epubjs::defaultSettings in Epub 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/EpubJs.php, line 90
Contains \Drupal\epub\Plugin\Field\FieldFormatter\Epubjs.

Class

Epubjs
Plugin implementation of the 'epubJs' formatter.

Namespace

Drupal\epub\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $settings['width'] = '100%';
  $settings['height'] = '600px';
  $settings['unzipped'] = TRUE;
  return $settings;
}