You are here

public static function PatternWrapperEntityReferenceFormatter::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 EntityReferenceEntityFormatter::defaultSettings

File

src/Plugin/Field/FieldFormatter/PatternWrapperEntityReferenceFormatter.php, line 116

Class

PatternWrapperEntityReferenceFormatter
Plugin implementation of 'pattern_wrapper_entity_reference_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' => [],
  ] + parent::defaultSettings();
}