public static function AmpVideoFormatter::defaultSettings in Accelerated Mobile Pages (AMP) 8.3
Same name and namespace in other branches
- 8 src/Plugin/Field/FieldFormatter/AmpVideoFormatter.php \Drupal\amp\Plugin\Field\FieldFormatter\AmpVideoFormatter::defaultSettings()
- 8.2 src/Plugin/Field/FieldFormatter/AmpVideoFormatter.php \Drupal\amp\Plugin\Field\FieldFormatter\AmpVideoFormatter::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/ AmpVideoFormatter.php, line 55
Class
- AmpVideoFormatter
- Plugin implementation of the 'amp_video' formatter.
Namespace
Drupal\amp\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'height' => 175,
'width' => 350,
'layout' => 'responsive',
'autoplay' => FALSE,
'controls' => FALSE,
'loop' => FALSE,
] + parent::defaultSettings();
}