You are here

public static function BatCalendarUnitReference::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/BatCalendarUnitReference.php, line 70
Contains \Drupal\bat_calendar_reference\Plugin\Field\FieldType\BatCalendarUnitReference.

Class

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

Namespace

Drupal\bat_calendar_reference\Plugin\Field\FieldType

Code

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