public static function AddToCalendarField::defaultFieldSettings in Add To Calendar Button (AddEvent.com) 8.3
Same name and namespace in other branches
- 8.4 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\FieldTypeCode
public static function defaultFieldSettings() {
$addtocalendar_settings = [
'style' => 'glow_orange',
];
$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;
}