public function PatternFormatter::settingsSummary in UI Patterns 8
File
- modules/
ui_patterns_field_group/ src/ Plugin/ field_group/ FieldGroupFormatter/ PatternFormatter.php, line 164
Class
- PatternFormatter
- Plugin implementation of the 'paragraph' formatter.
Namespace
Drupal\ui_patterns_field_group\Plugin\field_group\FieldGroupFormatterCode
public function settingsSummary() {
$label = $this
->t('None');
if (!empty($this
->getSetting('pattern'))) {
$label = $this->patternsManager
->getDefinition($this
->getSetting('pattern'))
->getLabel();
}
return [
$this
->t('Pattern: @pattern', [
'@pattern' => $label,
]),
];
}