You are here

public function H5PDefaultFormatter::settingsSummary in Opigno module 8

Same name and namespace in other branches
  1. 3.x ActivityTypes/opigno_h5p/src/Plugin/Field/FieldFormatter/H5PDefaultFormatter.php \Drupal\opigno_h5p\Plugin\Field\FieldFormatter\H5PDefaultFormatter::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

ActivityTypes/opigno_h5p/src/Plugin/Field/FieldFormatter/H5PDefaultFormatter.php, line 29

Class

H5PDefaultFormatter
Plugin implementation of the 'h5p_default' formatter.

Namespace

Drupal\opigno_h5p\Plugin\Field\FieldFormatter

Code

public function settingsSummary() {
  $summary = [];
  $summary[] = $this
    ->t('Displays interactive H5P content.');
  return $summary;
}