You are here

public function ElementListClassTrait::settingsSummary in Element Class Formatter 8

File

src/Plugin/Field/FieldFormatter/ElementListClassTrait.php, line 53

Class

ElementListClassTrait
The ElementListClassTrait is used to turn multi-cardinality fields into lists with a class.

Namespace

Drupal\element_class_formatter\Plugin\Field\FieldFormatter

Code

public function settingsSummary() {
  $summary = parent::settingsSummary();
  $class = $this
    ->getSetting('class');
  if ($tag = $this
    ->getSetting('list_type')) {
    $summary[] = $this
      ->t('List type: @tag', [
      '@tag' => $tag,
    ]);
  }
  return $this
    ->elementClassSettingsSummary($summary, $class);
}