You are here

public static function FileVideoFormatter::defaultSettings in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/file/src/Plugin/Field/FieldFormatter/FileVideoFormatter.php \Drupal\file\Plugin\Field\FieldFormatter\FileVideoFormatter::defaultSettings()
  2. 9 core/modules/file/src/Plugin/Field/FieldFormatter/FileVideoFormatter.php \Drupal\file\Plugin\Field\FieldFormatter\FileVideoFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides FileMediaFormatterBase::defaultSettings

File

core/modules/file/src/Plugin/Field/FieldFormatter/FileVideoFormatter.php, line 31

Class

FileVideoFormatter
Plugin implementation of the 'file_video' formatter.

Namespace

Drupal\file\Plugin\Field\FieldFormatter

Code

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