public function CshsFlexibleHierarchyFormatter::settingsSummary in Client-side Hierarchical Select 8
Same name and namespace in other branches
- 8.3 src/Plugin/Field/FieldFormatter/CshsFlexibleHierarchyFormatter.php \Drupal\cshs\Plugin\Field\FieldFormatter\CshsFlexibleHierarchyFormatter::settingsSummary()
- 8.2 src/Plugin/Field/FieldFormatter/CshsFlexibleHierarchyFormatter.php \Drupal\cshs\Plugin\Field\FieldFormatter\CshsFlexibleHierarchyFormatter::settingsSummary()
Returns a short summary for the current formatter settings.
If an empty result is returned, a UI can still be provided to display a settings form in case the formatter has configurable settings.
Return value
string[] A short summary of the formatter settings.
Overrides CshsFormatterBase::settingsSummary
File
- src/
Plugin/ Field/ FieldFormatter/ CshsFlexibleHierarchyFormatter.php, line 67
Class
- CshsFlexibleHierarchyFormatter
- Plugin implementation of the "Flexible hierarchy" formatter.
Namespace
Drupal\cshs\Plugin\Field\FieldFormatterCode
public function settingsSummary() : array {
$summary = parent::settingsSummary();
$summary[] = $this
->t('Format: @format', [
'@format' => $this
->getSetting('format'),
]);
return $summary;
}