You are here

public static function BatCalendarUnitTypeReference::defaultFieldSettings in Booking and Availability Management Tools for Drupal 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

modules/bat_calendar_reference/src/Plugin/Field/FieldType/BatCalendarUnitTypeReference.php, line 70
Contains \Drupal\bat_calendar_reference\Plugin\Field\FieldType\BatCalendarUnitTypeReference.

Class

BatCalendarUnitTypeReference
Plugin annotation @FieldType( id = "bat_calendar_unit_type_reference", label = @Translation("BAT Calendar Unit Type Reference"), description = @Translation("Display unit type events information embedded from other fieldable content."), …

Namespace

Drupal\bat_calendar_reference\Plugin\Field\FieldType

Code

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