You are here

public static function AdFormatter::defaultSettings in Facebook Instant Articles 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/AdFormatter.php \Drupal\fb_instant_articles\Plugin\Field\FieldFormatter\AdFormatter::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 AdFormatter::defaultSettings()
AdLinkFormatter::defaultSettings in src/Plugin/Field/FieldFormatter/AdLinkFormatter.php
Defines the default settings for this plugin.
1 method overrides AdFormatter::defaultSettings()
AdLinkFormatter::defaultSettings in src/Plugin/Field/FieldFormatter/AdLinkFormatter.php
Defines the default settings for this plugin.

File

src/Plugin/Field/FieldFormatter/AdFormatter.php, line 31

Class

AdFormatter
Plugin implementation of the 'fbia_ad' formatter.

Namespace

Drupal\fb_instant_articles\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'source_type' => self::SOURCE_TYPE_URL,
    'width' => 300,
    'height' => 250,
  ] + parent::defaultSettings();
}