You are here

public static function FieldPdfReaderField::defaultSettings in PDF Reader 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/FieldPdfReaderField.php, line 62

Class

FieldPdfReaderField
Plugin implementation of the 'FieldPdfReaderFields' formatter.

Namespace

Drupal\pdf_reader\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'pdf_width' => 600,
    'pdf_height' => 780,
    'renderer' => 'google',
    'embed_view_fit' => 'Fit',
    'embed_hide_toolbar' => FALSE,
    'download' => FALSE,
    'link_placement' => 'top',
  ] + parent::defaultSettings();
}