You are here

public static function FontawesomeIconpicker::defaultSettings in Font Awesome Iconpicker 8

Same name in this branch
  1. 8 src/Plugin/Field/FieldFormatter/FontawesomeIconpicker.php \Drupal\fontawesome_iconpicker\Plugin\Field\FieldFormatter\FontawesomeIconpicker::defaultSettings()
  2. 8 src/Plugin/Field/FieldWidget/FontawesomeIconpicker.php \Drupal\fontawesome_iconpicker\Plugin\Field\FieldWidget\FontawesomeIconpicker::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/FontawesomeIconpicker.php, line 28

Class

FontawesomeIconpicker
Plugin implementation of the 'fontawesome_iconpicker' formatter.

Namespace

Drupal\fontawesome_iconpicker\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    // Implement default settings.
    'size' => 'fa-1x',
  ] + parent::defaultSettings();
}