You are here

public static function VideoFormatter::defaultSettings in Facebook Instant Articles 8.2

Same name and namespace in other branches
  1. 3.x src/Plugin/Field/FieldFormatter/VideoFormatter.php \Drupal\fb_instant_articles\Plugin\Field\FieldFormatter\VideoFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides DescriptionAwareFileFormatterBase::defaultSettings

File

src/Plugin/Field/FieldFormatter/VideoFormatter.php, line 66

Class

VideoFormatter
Plugin implementation of the 'fbia_video' formatter.

Namespace

Drupal\fb_instant_articles\Plugin\Field\FieldFormatter

Code

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