You are here

public static function AmpSocialPostFormatter::defaultSettings in Accelerated Mobile Pages (AMP) 8.3

Defines the default settings for this plugin.

Return value

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

Overrides PluginSettingsBase::defaultSettings

File

src/Plugin/Field/FieldFormatter/AmpSocialPostFormatter.php, line 59

Class

AmpSocialPostFormatter
Plugin implementation of the 'amp_social_post' formatter.

Namespace

Drupal\amp\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'layout' => 'responsive',
    'width' => '',
    'height' => '',
    'provider' => [],
    'data-embed-as' => 'post',
    'data-align-center' => '',
    'placeholder' => '',
  ] + parent::defaultSettings();
}