You are here

public static function FileItem::defaultStorageSettings in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/file/src/Plugin/Field/FieldType/FileItem.php \Drupal\file\Plugin\Field\FieldType\FileItem::defaultStorageSettings()
  2. 9 core/modules/file/src/Plugin/Field/FieldType/FileItem.php \Drupal\file\Plugin\Field\FieldType\FileItem::defaultStorageSettings()

Defines the storage-level settings for this plugin.

Return value

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

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\FieldType

Code

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();
}