public static function ImageItem::defaultStorageSettings in Drupal 9
Same name and namespace in other branches
- 8 core/modules/image/src/Plugin/Field/FieldType/ImageItem.php \Drupal\image\Plugin\Field\FieldType\ImageItem::defaultStorageSettings()
- 10 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 54
Class
- ImageItem
- Plugin implementation of the 'image' field type.
Namespace
Drupal\image\Plugin\Field\FieldTypeCode
public static function defaultStorageSettings() {
return [
'default_image' => [
'uuid' => NULL,
'alt' => '',
'title' => '',
'width' => NULL,
'height' => NULL,
],
] + parent::defaultStorageSettings();
}