You are here

public static function PrivateMessageThreadMemberFormatter::defaultSettings in Private Message 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/PrivateMessageThreadMemberFormatter.php \Drupal\private_message\Plugin\Field\FieldFormatter\PrivateMessageThreadMemberFormatter::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

src/Plugin/Field/FieldFormatter/PrivateMessageThreadMemberFormatter.php, line 135

Class

PrivateMessageThreadMemberFormatter
Defines the private message member field formatter.

Namespace

Drupal\private_message\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'display_type' => 'label',
    'entity_display_mode' => 'private_message_author',
    'members_prefix' => t('You and'),
  ] + parent::defaultSettings();
}