You are here

public function MetatagFirehose::settingsSummary in Metatag 8

Returns a short summary for the current widget settings.

If an empty result is returned, a UI can still be provided to display a settings form in case the widget has configurable settings.

Return value

array A short summary of the widget settings.

Overrides WidgetBase::settingsSummary

File

src/Plugin/Field/FieldWidget/MetatagFirehose.php, line 94

Class

MetatagFirehose
Advanced widget for metatag field.

Namespace

Drupal\metatag\Plugin\Field\FieldWidget

Code

public function settingsSummary() {
  if ($this
    ->getSetting('sidebar')) {
    $summary[] = $this
      ->t('Use sidebar: Yes');
  }
  else {
    $summary[] = $this
      ->t('Use sidebar: No');
  }
  return $summary;
}