You are here

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

Class

PdfThumbnail
Plugin annotation @FieldFormatter( id = "pdf_thumbnail", label = @Translation("PDF: Display the first page"), description = @Translation("Display the first page of the PDF file."), field_types = {"file"} )

Namespace

Drupal\pdf\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'scale' => 1,
    'width' => '',
    'height' => '',
  ] + parent::defaultSettings();
}