You are here

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

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/BynderVideoFormatter.php, line 27

Class

BynderVideoFormatter
Plugin implementation of the 'Bynder Video' formatter.

Namespace

Drupal\bynder\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'controls' => TRUE,
    'autoplay' => FALSE,
    'loop' => FALSE,
    'muted' => FALSE,
    'width' => 640,
    'height' => 480,
  ] + parent::defaultSettings();
}