You are here

public static function EntityReferenceExportFormatter::defaultSettings in REST Views 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/Field/FieldFormatter/EntityReferenceExportFormatter.php \Drupal\rest_views\Plugin\Field\FieldFormatter\EntityReferenceExportFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides EntityReferenceEntityFormatter::defaultSettings

File

src/Plugin/Field/FieldFormatter/EntityReferenceExportFormatter.php, line 118

Class

EntityReferenceExportFormatter
A plugin that creates a serializable form of a rendered entity.

Namespace

Drupal\rest_views\Plugin\Field\FieldFormatter

Code

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