You are here

public function ColorapiRawRgbDisplayFormatter::settingsSummary in Color API 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 ColorapiDisplayFormatterBase::settingsSummary

File

src/Plugin/Field/FieldFormatter/ColorapiRawRgbDisplayFormatter.php, line 24

Class

ColorapiRawRgbDisplayFormatter
Raw RGB formatter for Color API Color fields.

Namespace

Drupal\colorapi\Plugin\Field\FieldFormatter

Code

public function settingsSummary() {
  $summary = [];
  $summary['overview'] = $this
    ->t('Displays a RGB representation of the color, with no HTML wrappers.');
  return $summary + parent::settingsSummary();
}