public static function TableFormatter::defaultSettings in File Hash 8
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides DescriptionAwareFileFormatterBase::defaultSettings
File
- src/
Plugin/ Field/ FieldFormatter/ TableFormatter.php, line 75
Class
- TableFormatter
- Plugin implementation of the 'filehash_table' formatter.
Namespace
Drupal\filehash\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
$settings = parent::defaultSettings();
$algos = filehash_algos();
$settings['algo'] = array_pop($algos);
return $settings;
}