You are here

public function GravatarGenerator::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/GravatarGenerator.php, line 76

Class

GravatarGenerator
Gravatar generated avatars generator.

Namespace

Drupal\avatars_gravatar\Plugin\AvatarGenerator

Code

public function settingsSummary() {
  $summary = [];
  if (empty($this->configuration['type'])) {
    $summary[] = $this
      ->t('Missing Configuration');
  }
  else {
    $summary[]['#markup'] = $this
      ->t('Type: @type', [
      '@type' => $this->configuration['type'],
    ]);
  }
  return $summary;
}