public static function ReadmoreFormatter::defaultSettings in Readmore 8
Same name and namespace in other branches
- 2.x src/Plugin/Field/FieldFormatter/ReadmoreFormatter.php \Drupal\readmore\Plugin\Field\FieldFormatter\ReadmoreFormatter::defaultSettings()
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/ ReadmoreFormatter.php, line 37 - Contains \Drupal\readmore\Plugin\field\FieldFormatter\ReadmoreFormatter.
Class
- ReadmoreFormatter
- Plugin implementation of the 'readmore' formatter.
Namespace
Drupal\readmore\Plugin\Field\FieldFormatterCode
public static function defaultSettings() {
return array(
'trim_length' => '500',
'trim_on_break' => TRUE,
'show_readmore' => TRUE,
'show_readless' => FALSE,
'ellipsis' => TRUE,
'wordsafe' => FALSE,
) + parent::defaultSettings();
}