function FileItem::defaultFieldSettings
Same name in other branches
- 9 core/modules/file/src/Plugin/Field/FieldType/FileItem.php \Drupal\file\Plugin\Field\FieldType\FileItem::defaultFieldSettings()
- 8.9.x core/modules/file/src/Plugin/Field/FieldType/FileItem.php \Drupal\file\Plugin\Field\FieldType\FileItem::defaultFieldSettings()
- 11.x core/modules/file/src/Plugin/Field/FieldType/FileItem.php \Drupal\file\Plugin\Field\FieldType\FileItem::defaultFieldSettings()
Overrides EntityReferenceItem::defaultFieldSettings
1 call to FileItem::defaultFieldSettings()
- ImageItem::defaultFieldSettings in core/
modules/ image/ src/ Plugin/ Field/ FieldType/ ImageItem.php
1 method overrides FileItem::defaultFieldSettings()
- ImageItem::defaultFieldSettings in core/
modules/ image/ src/ Plugin/ Field/ FieldType/ ImageItem.php
File
-
core/
modules/ file/ src/ Plugin/ Field/ FieldType/ FileItem.php, line 71
Class
- FileItem
- Plugin implementation of the 'file' field type.
Namespace
Drupal\file\Plugin\Field\FieldTypeCode
public static function defaultFieldSettings() {
return [
'file_extensions' => 'txt',
'file_directory' => '[date:custom:Y]-[date:custom:m]',
'max_filesize' => '',
'description_field' => 0,
] + parent::defaultFieldSettings();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.