You are here

public static function Barcode::defaultSettings in Barcodes 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Field/FieldFormatter/Barcode.php \Drupal\barcodes\Plugin\Field\FieldFormatter\Barcode::defaultSettings()

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/Barcode.php, line 34

Class

Barcode
Plugin implementation of the 'barcode' formatter.

Namespace

Drupal\barcodes\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'type' => 'QRCODE',
    'format' => 'SVG',
    'color' => '#000000',
    'height' => 100,
    'width' => 100,
    'padding_top' => 0,
    'padding_right' => 0,
    'padding_bottom' => 0,
    'padding_left' => 0,
    'show_value' => FALSE,
  ] + parent::defaultSettings();
}