You are here

public static function AddtocalView::defaultSettings in Add to Cal 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/AddtocalView.php \Drupal\addtocal\Plugin\Field\FieldFormatter\AddtocalView::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides DateTimeCustomFormatter::defaultSettings

File

src/Plugin/Field/FieldFormatter/AddtocalView.php, line 33

Class

AddtocalView
Plugin annotation @FieldFormatter( id = "addtocal_view", label = @Translation("Add to Cal"), field_types = { "date", "datestamp", "datetime", "daterange", } )

Namespace

Drupal\addtocal\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'location' => [
      'value' => FALSE,
      'tokenized' => '',
    ],
    'description' => [
      'value' => FALSE,
      'tokenized' => '',
    ],
    'past_events' => FALSE,
    'separator' => '-',
  ] + parent::defaultSettings();
}