You are here

public static function BynderFormatter::defaultSettings in Bynder 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Plugin/Field/FieldFormatter/BynderFormatter.php \Drupal\bynder\Plugin\Field\FieldFormatter\BynderFormatter::defaultSettings()
  2. 8 src/Plugin/Field/FieldFormatter/BynderFormatter.php \Drupal\bynder\Plugin\Field\FieldFormatter\BynderFormatter::defaultSettings()
  3. 8.2 src/Plugin/Field/FieldFormatter/BynderFormatter.php \Drupal\bynder\Plugin\Field\FieldFormatter\BynderFormatter::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/BynderFormatter.php, line 44

Class

BynderFormatter
Plugin implementation of the 'Bynder' formatter.

Namespace

Drupal\bynder\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'thumbnail' => 'webimage',
    'alt_field' => '',
    'title_field' => '',
    'dat_query' => '',
    'responsive_sizes' => '',
    'dat_query_responsive' => '',
  ] + parent::defaultSettings();
}