You are here

public function EditableFieldsFieldFormatter::settingsSummary in Editable Fields 8

Same name and namespace in other branches
  1. 1.0.x src/Plugin/Field/FieldFormatter/EditableFieldsFieldFormatter.php \Drupal\editablefields\Plugin\Field\FieldFormatter\EditableFieldsFieldFormatter::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 FormatterBase::settingsSummary

File

src/Plugin/Field/FieldFormatter/EditableFieldsFieldFormatter.php, line 93

Class

EditableFieldsFieldFormatter
Plugin implementation of the 'editablefields_formatter' formatter.

Namespace

Drupal\editablefields\Plugin\Field\FieldFormatter

Code

public function settingsSummary() {
  return [
    $this
      ->t('Form mode: @form_mode', [
      '@form_mode' => $this
        ->getSetting('form_mode'),
    ]),
  ];
}