You are here

public static function PatternFormatter::defaultSettings in UI Patterns Field Formatters 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/PatternFormatter.php, line 135

Class

PatternFormatter
Plugin implementation of the 'pattern' formatter.

Namespace

Drupal\ui_patterns_field_formatters\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'pattern' => '',
    'variants' => '',
    'pattern_mapping' => [],
    // Used by ui_patterns_settings.
    'pattern_settings' => [],
    'variants_token' => [],
  ] + parent::defaultSettings();
}