You are here

public static function LinkClassFormatter::defaultSettings in Open Social 10.0.x

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_core/src/Plugin/Field/FieldFormatter/LinkClassFormatter.php \Drupal\social_core\Plugin\Field\FieldFormatter\LinkClassFormatter::defaultSettings()
  2. 8.8 modules/social_features/social_core/src/Plugin/Field/FieldFormatter/LinkClassFormatter.php \Drupal\social_core\Plugin\Field\FieldFormatter\LinkClassFormatter::defaultSettings()
  3. 10.3.x modules/social_features/social_core/src/Plugin/Field/FieldFormatter/LinkClassFormatter.php \Drupal\social_core\Plugin\Field\FieldFormatter\LinkClassFormatter::defaultSettings()
  4. 10.1.x modules/social_features/social_core/src/Plugin/Field/FieldFormatter/LinkClassFormatter.php \Drupal\social_core\Plugin\Field\FieldFormatter\LinkClassFormatter::defaultSettings()
  5. 10.2.x modules/social_features/social_core/src/Plugin/Field/FieldFormatter/LinkClassFormatter.php \Drupal\social_core\Plugin\Field\FieldFormatter\LinkClassFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides LinkFormatter::defaultSettings

File

modules/social_features/social_core/src/Plugin/Field/FieldFormatter/LinkClassFormatter.php, line 25

Class

LinkClassFormatter
Plugin implementation of the 'link' formatter.

Namespace

Drupal\social_core\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return parent::defaultSettings() + [
    'class' => '',
  ];
}