You are here

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

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

Defines the default settings for this plugin.

Return value

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

Overrides AdFormatter::defaultSettings

File

src/Plugin/Field/FieldFormatter/AdLinkFormatter.php, line 24

Class

AdLinkFormatter
Plugin implementation of the 'fbia_ad_link' formatter.

Namespace

Drupal\fb_instant_articles\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $default_settings = parent::defaultSettings();
  unset($default_settings['source_type']);
  return $default_settings;
}