function UserNameFormatter::defaultSettings
Overrides PluginSettingsBase::defaultSettings
File
- 
              core/
modules/ user/ src/ Plugin/ Field/ FieldFormatter/ UserNameFormatter.php, line 28  
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.