You are here

public static function CshsFormatterBase::defaultSettings in Client-side Hierarchical Select 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/Field/FieldFormatter/CshsFormatterBase.php \Drupal\cshs\Plugin\Field\FieldFormatter\CshsFormatterBase::defaultSettings()
  2. 8.2 src/Plugin/Field/FieldFormatter/CshsFormatterBase.php \Drupal\cshs\Plugin\Field\FieldFormatter\CshsFormatterBase::defaultSettings()

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides PluginSettingsBase::defaultSettings

2 calls to CshsFormatterBase::defaultSettings()
CshsFlexibleHierarchyFormatter::defaultSettings in src/Plugin/Field/FieldFormatter/CshsFlexibleHierarchyFormatter.php
Defines the default settings for this plugin.
CshsFullHierarchyFormatter::defaultSettings in src/Plugin/Field/FieldFormatter/CshsFullHierarchyFormatter.php
Defines the default settings for this plugin.
2 methods override CshsFormatterBase::defaultSettings()
CshsFlexibleHierarchyFormatter::defaultSettings in src/Plugin/Field/FieldFormatter/CshsFlexibleHierarchyFormatter.php
Defines the default settings for this plugin.
CshsFullHierarchyFormatter::defaultSettings in src/Plugin/Field/FieldFormatter/CshsFullHierarchyFormatter.php
Defines the default settings for this plugin.

File

src/Plugin/Field/FieldFormatter/CshsFormatterBase.php, line 22

Class

CshsFormatterBase
Base formatter for CSHS field.

Namespace

Drupal\cshs\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() : array {
  return [
    'linked' => FALSE,
    'reverse' => FALSE,
  ];
}