public static function AmpVideoFormatter::defaultSettings in Accelerated Mobile Pages (AMP) 8
Same name and namespace in other branches
- 8.3 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 31 - Contains \Drupal\amp\Plugin\Field\FieldFormatter\AmpVideoFormatter.
Class
- AmpVideoFormatter
- Plugin implementation of the 'amp_video' formatter.
Namespace
Drupal\amp\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return array(
'amp_video_height' => 175,
'amp_video_width' => 350,
) + parent::defaultSettings();
}