You are here

public static function UserNameFormatter::defaultSettings in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/user/src/Plugin/Field/FieldFormatter/UserNameFormatter.php \Drupal\user\Plugin\Field\FieldFormatter\UserNameFormatter::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

core/modules/user/src/Plugin/Field/FieldFormatter/UserNameFormatter.php, line 27

Class

UserNameFormatter
Plugin implementation of the 'user_name' formatter.

Namespace

Drupal\user\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $options = parent::defaultSettings();
  $options['link_to_entity'] = TRUE;
  return $options;
}