You are here

public static function FileItem::defaultStorageSettings in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 39
Contains \Drupal\file\Plugin\Field\FieldType\FileItem.

Class

FileItem
Plugin implementation of the 'file' field type.

Namespace

Drupal\file\Plugin\Field\FieldType

Code

public static function defaultStorageSettings() {
  return array(
    'target_type' => 'file',
    'display_field' => FALSE,
    'display_default' => FALSE,
    'uri_scheme' => file_default_scheme(),
  ) + parent::defaultStorageSettings();
}