You are here

public static function SocialMediaItem::defaultFieldSettings in Social media share 8

Defines the field-level settings for this plugin.

Return value

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

Overrides FieldItemBase::defaultFieldSettings

File

src/Plugin/Field/FieldType/SocialMediaItem.php, line 45

Class

SocialMediaItem
Plugin implementation of the 'social_media' field type.

Namespace

Drupal\social_media\Plugin\Field\FieldType

Code

public static function defaultFieldSettings() {
  return [
    'on_label' => new TranslatableMarkup('On'),
    'off_label' => new TranslatableMarkup('Off'),
  ] + parent::defaultFieldSettings();
}