public static function UserNameFormatter::defaultSettings in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 32 - Contains \Drupal\user\Plugin\Field\FieldFormatter\UserNameFormatter.
Class
- UserNameFormatter
- Plugin implementation of the 'user_name' formatter.
Namespace
Drupal\user\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
$options = parent::defaultSettings();
$options['link_to_entity'] = TRUE;
return $options;
}