You are here

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

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

Defines the default settings for this plugin.

Return value

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

Overrides AnalyticsFormatter::defaultSettings

File

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

Class

AnalyticsLinkFormatter
Plugin implementation of the 'fbia_analytics_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;
}