function FileItem::defaultStorageSettings
Same name in other branches
- 9 core/modules/file/src/Plugin/Field/FieldType/FileItem.php \Drupal\file\Plugin\Field\FieldType\FileItem::defaultStorageSettings()
- 10 core/modules/file/src/Plugin/Field/FieldType/FileItem.php \Drupal\file\Plugin\Field\FieldType\FileItem::defaultStorageSettings()
- 11.x core/modules/file/src/Plugin/Field/FieldType/FileItem.php \Drupal\file\Plugin\Field\FieldType\FileItem::defaultStorageSettings()
Overrides EntityReferenceItem::defaultStorageSettings
1 call to FileItem::defaultStorageSettings()
- ImageItem::defaultStorageSettings in core/
modules/ image/ src/ Plugin/ Field/ FieldType/ ImageItem.php - Defines the storage-level settings for this plugin.
1 method overrides FileItem::defaultStorageSettings()
- ImageItem::defaultStorageSettings in core/
modules/ image/ src/ Plugin/ Field/ FieldType/ ImageItem.php - Defines the storage-level settings for this plugin.
File
-
core/
modules/ file/ src/ Plugin/ Field/ FieldType/ FileItem.php, line 36
Class
- FileItem
- Plugin implementation of the 'file' field type.
Namespace
Drupal\file\Plugin\Field\FieldTypeCode
public static function defaultStorageSettings() {
return [
'target_type' => 'file',
'display_field' => FALSE,
'display_default' => FALSE,
'uri_scheme' => \Drupal::config('system.file')->get('default_scheme'),
] + parent::defaultStorageSettings();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.