public static function MinisiteItem::defaultFieldSettings in Mini site 8
Defines the field-level settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides FileItem::defaultFieldSettings
File
- src/
Plugin/ Field/ FieldType/ MinisiteItem.php, line 38
Class
- MinisiteItem
- Plugin implementation of the Minisite field type.
Namespace
Drupal\minisite\Plugin\Field\FieldTypeCode
public static function defaultFieldSettings() {
$defaults = [
'file_extensions' => MinisiteInterface::SUPPORTED_ARCHIVE_EXTENSIONS,
'file_directory' => MinisiteInterface::ARCHIVE_UPLOAD_DIR,
'minisite_extensions' => MinisiteInterface::ALLOWED_EXTENSIONS,
'description_field' => TRUE,
];
$settings = $defaults + parent::defaultFieldSettings();
return $settings;
}