You are here

public static function EntityReferenceHierarchyLabelFormatter::defaultSettings in Entity Reference Hierarchy 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldFormatter/EntityReferenceHierarchyLabelFormatter.php \Drupal\entity_hierarchy\Plugin\Field\FieldFormatter\EntityReferenceHierarchyLabelFormatter::defaultSettings()

Defines the default settings for this plugin.

Return value

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

Overrides EntityReferenceLabelFormatter::defaultSettings

File

src/Plugin/Field/FieldFormatter/EntityReferenceHierarchyLabelFormatter.php, line 26

Class

EntityReferenceHierarchyLabelFormatter
Plugin implementation of the 'entity_hierarchy' formatter.

Namespace

Drupal\entity_hierarchy\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {
  return [
    'weight_output' => 'attribute',
  ] + parent::defaultSettings();
}