public function ElementEntityClassTrait::settingsSummary in Element Class Formatter 8
File
- src/
Plugin/ Field/ FieldFormatter/ ElementEntityClassTrait.php, line 38
Class
- ElementEntityClassTrait
- The ElementEntityClassTrait is used for adding classes to the #item_attributes of fields that display other entities.
Namespace
Drupal\element_class_formatter\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
$summary = parent::settingsSummary();
$class = $this
->getSetting('class');
return $this
->elementClassSettingsSummary($summary, $class);
}