/** * @inheritdoc */ public function settingsSummary() { $summary = parent::settingsSummary(); $region = $this->getSetting('regional'); $summary[] = $this->t('Region: %regional', array('%regional' => $this->regionOptions()[$region])); $summary[] = $this->t('Format: %format', array('%format' => $this->getSetting('format'))); $summary[] = $this->t('Layout: %layout', array('%layout' => $this->getSetting('layout'))); $summary[] = $this->t('Compact: %compact', array('%compact' => $this->getSetting('compact') ? $this->t('Yes') : $this->t('No'))); $summary[] = $this->t('Granularity: %significant', array('%significant' => $this->getSetting('significant'))); $summary[] = $this->t('Time separator: %timeSeparator', array('%timeSeparator' => $this->getSetting('timeSeparator'))); $summary[] = $this->t('Pad with zeroes: %padZeroes', array('%padZeroes' => $this->getSetting('padZeroes') ? $this->t('Yes') : $this->t('No'))); return $summary; }
/** * @inheritdoc */ public function settingsSummary() { $summary = parent::settingsSummary(); $theme = $this->getSetting('countdown_theme'); $max_count_of_days = $this->getSetting('max_count_of_days'); $summary[] = t('Theme: %theme', array('%theme' => $this->themeOptions()[$theme])); $summary[] = t('Display days: %display_days', array('%display_days' => $this->getSetting('display_days') ? $this->t('Yes') : $this->t('No'))); if ($this->getSetting('display_days')) { $summary[] = t('Maximum count of days: %max_count_of_days', array('%max_count_of_days' => $this->dayOptions()[$max_count_of_days])); } $summary[] = t('Display hours: %display_hours', array('%display_hours' => $this->getSetting('display_hours') ? $this->t('Yes') : $this->t('No'))); $summary[] = t('Display minutes: %display_minutes', array('%display_minutes' => $this->getSetting('display_minutes') ? $this->t('Yes') : $this->t('No'))); $summary[] = t('Display seconds: %display_seconds', array('%display_seconds' => $this->getSetting('display_seconds') ? $this->t('Yes') : $this->t('No'))); return $summary; }