You are here

public static function AddToCalendarField::defaultFieldSettings in Add To Calendar Button (AddEvent.com) 8.4

Same name and namespace in other branches
  1. 8.3 src/Plugin/Field/FieldType/AddToCalendarField.php \Drupal\addtocalendar\Plugin\Field\FieldType\AddToCalendarField::defaultFieldSettings()

Defines the field-level settings for this plugin.

Return value

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

Overrides BooleanItem::defaultFieldSettings

File

src/Plugin/Field/FieldType/AddToCalendarField.php, line 25

Class

AddToCalendarField
Plugin implementation of the 'my_test_field' field type.

Namespace

Drupal\addtocalendar\Plugin\Field\FieldType

Code

public static function defaultFieldSettings() {
  $addtocalendar_settings = [];
  $settings = [
    'addtocalendar_show' => '1',
    'addtocalendar_settings' => $addtocalendar_settings,
    'on_label' => new TranslatableMarkup('Add to Calendar'),
    'off_label' => new TranslatableMarkup('Add to Calendar Disabled'),
  ];
  return $settings;
}