You are here

public static function NameFormatter::defaultSettings in Name Field 8

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/NameFormatter.php, line 150

Class

NameFormatter
Plugin implementation of the 'name' formatter.

Namespace

Drupal\name\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $settings = parent::defaultSettings();
  $settings += [
    "format" => "default",
    "markup" => "none",
    "list_format" => "",
    "link_target" => "",
  ];
  $settings += self::getDefaultAdditionalPreferredSettings();
  return $settings;
}