You are here

public static function ImageItem::defaultStorageSettings in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/image/src/Plugin/Field/FieldType/ImageItem.php \Drupal\image\Plugin\Field\FieldType\ImageItem::defaultStorageSettings()

Defines the storage-level settings for this plugin.

Return value

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

Overrides FileItem::defaultStorageSettings

File

core/modules/image/src/Plugin/Field/FieldType/ImageItem.php, line 61
Contains \Drupal\image\Plugin\Field\FieldType\ImageItem.

Class

ImageItem
Plugin implementation of the 'image' field type.

Namespace

Drupal\image\Plugin\Field\FieldType

Code

public static function defaultStorageSettings() {
  return array(
    'default_image' => array(
      'uuid' => NULL,
      'alt' => '',
      'title' => '',
      'width' => NULL,
      'height' => NULL,
    ),
  ) + parent::defaultStorageSettings();
}