You are here

public function JQueryColorpickerRawRgbDisplayFormatter::settingsSummary in Jquery Colorpicker 8

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/JQueryColorpickerRawRgbDisplayFormatter.php, line 25

Class

JQueryColorpickerRawRgbDisplayFormatter
Formatter class for jquery_colorpicker field.

Namespace

Drupal\jquery_colorpicker\Plugin\Field\FieldFormatter

Code

public function settingsSummary() {
  $summary = [];
  $settings = $this
    ->getSettings();
  $summary[] = t('Displays a rgb representation of the color, with no HTML wrappers nor the # prefix');
  return $summary;
}