You are here

public static function PdfPages::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/PdfPages.php, line 20

Class

PdfPages
Plugin annotation @FieldFormatter( id = "pdf_pages", label = @Translation("PDF: Continuous scroll (experimental)"), description = @Translation("Don't use this to display big PDF file."), field_types = {"file"} )

Namespace

Drupal\pdf\Plugin\Field\FieldFormatter

Code

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