You are here

public static function FileMediaFormatterBase::defaultSettings in Drupal 8

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

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

1 call to FileMediaFormatterBase::defaultSettings()
FileVideoFormatter::defaultSettings in core/modules/file/src/Plugin/Field/FieldFormatter/FileVideoFormatter.php
Defines the default settings for this plugin.
1 method overrides FileMediaFormatterBase::defaultSettings()
FileVideoFormatter::defaultSettings in core/modules/file/src/Plugin/Field/FieldFormatter/FileVideoFormatter.php
Defines the default settings for this plugin.

File

core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php, line 30

Class

FileMediaFormatterBase
Base class for media file formatter.

Namespace

Drupal\file\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'controls' => TRUE,
    'autoplay' => FALSE,
    'loop' => FALSE,
    'multiple_file_display_type' => 'tags',
  ] + parent::defaultSettings();
}