You are here

public static function ViewfieldItem::defaultFieldSettings in Viewfield 8.3

Defines the field-level settings for this plugin.

Return value

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

Overrides EntityReferenceItem::defaultFieldSettings

File

src/Plugin/Field/FieldType/ViewfieldItem.php, line 41

Class

ViewfieldItem
Plugin implementation of the 'viewfield' field type.

Namespace

Drupal\viewfield\Plugin\Field\FieldType

Code

public static function defaultFieldSettings() {
  return [
    'force_default' => 0,
    'allowed_views' => [],
    'allowed_display_types' => [
      'block' => 'block',
    ],
  ] + parent::defaultFieldSettings();
}