You are here

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

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

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/EntityReferenceEntityFormatter.php, line 87

Class

EntityReferenceEntityFormatter
Instant articles field formatter for entity reference fields.

Namespace

Drupal\fb_instant_articles\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'view_mode' => 'default',
  ] + parent::defaultSettings();
}