public static function EntityReferenceHierarchyLabelFormatter::defaultSettings in Entity Reference Hierarchy 8.2
Same name and namespace in other branches
- 3.x 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\FieldFormatterCode
public static function defaultSettings() {
return [
'weight_output' => 'attribute',
] + parent::defaultSettings();
}