You are here

public function FileFieldFormatter::defaultConfiguration in Entity Embed 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides FieldFormatterEntityEmbedDisplayBase::defaultConfiguration

File

src/Plugin/entity_embed/EntityEmbedDisplay/FileFieldFormatter.php, line 35

Class

FileFieldFormatter
Entity Embed Display reusing file field formatters.

Namespace

Drupal\entity_embed\Plugin\entity_embed\EntityEmbedDisplay

Code

public function defaultConfiguration() {
  $defaults = parent::defaultConfiguration();

  // Add support to store file description.
  $defaults['description'] = '';
  return $defaults;
}