You are here

public function Gravatar::settingsSummary in Avatar Kit 8

Generate a summary about the current configuration of the widget.

Return value

array A render array.

Overrides AvatarGeneratorBase::settingsSummary

File

avatars_gravatar/src/Plugin/AvatarGenerator/Gravatar.php, line 84

Class

Gravatar
Gravatar avatar generator.

Namespace

Drupal\avatars_gravatar\Plugin\AvatarGenerator

Code

public function settingsSummary() {
  $summary = [];
  if (!empty($this->configuration['maximum_rating'])) {
    $summary[]['#markup'] = $this
      ->t('Maximum rating: @maximum_rating', [
      '@maximum_rating' => $this->configuration['maximum_rating'],
    ]);
  }
  return $summary;
}