public static function SwaggerUIFormatter::defaultSettings in Swagger UI Field Formatter 8
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides PluginSettingsBase::defaultSettings
File
- src/
Plugin/ Field/ FieldFormatter/ SwaggerUIFormatter.php, line 26
Class
- SwaggerUIFormatter
- Plugin implementation of the 'swagger_ui' formatter.
Namespace
Drupal\swagger_ui_formatter\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return [
'validator' => 'default',
'validator_url' => '',
'doc_expansion' => 'list',
'show_top_bar' => FALSE,
'sort_tags_by_name' => FALSE,
'supported_submit_methods' => [],
] + parent::defaultSettings();
}