public static function ViewsReferenceItem::defaultFieldSettings in Views Reference Field 8
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldType/ViewsReferenceItem.php \Drupal\viewsreference\Plugin\Field\FieldType\ViewsReferenceItem::defaultFieldSettings()
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/ ViewsReferenceItem.php, line 47
Class
- ViewsReferenceItem
- Defines the 'viewsreference' entity field type.
Namespace
Drupal\viewsreference\Plugin\Field\FieldTypeCode
public static function defaultFieldSettings() {
return [
'plugin_types' => [
'block' => 'block',
],
'preselect_views' => [],
] + parent::defaultFieldSettings();
}