You are here

public static function IconSelectFormatterDefault::defaultSettings in Icon Select 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/IconSelectFormatterDefault.php, line 59

Class

IconSelectFormatterDefault
Plugin implementation of the icon_select_field text formatter.

Namespace

Drupal\icon_select\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  $settings = [
    // Implement default settings.
    'apply_dimensions' => TRUE,
    'width' => 25,
    'height' => 25,
  ];
  return $settings + parent::defaultSettings();
}