public static function ImageCaptionItem::defaultFieldSettings in Image Field Caption 8
Defines the field-level settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides ImageItem::defaultFieldSettings
1 call to ImageCaptionItem::defaultFieldSettings()
- ImageCaptionItem::fieldSettingsForm in src/
ImageCaptionItem.php - Returns a form for the field-level settings.
File
- src/
ImageCaptionItem.php, line 18 - Contains \Drupal\image_field_caption\ImageCaptionItem.
Class
Namespace
Drupal\image_field_captionCode
public static function defaultFieldSettings() {
return array(
'default_image' => array(
'caption' => '',
),
'caption_field' => FALSE,
'caption_field_required' => FALSE,
) + parent::defaultFieldSettings();
}