/** * {@inheritdoc} */ public function settingsSummary() { $summary = parent::settingsSummary(); $type = $this->getSetting('type'); $summary[] = $this->t('Type: @type', array('@type' => $this->typeOptions()[$type])); return $summary; }
/** * {@inheritdoc} */ public function settingsSummary() { $summary = parent::settingsSummary(); $animation = $this->getSetting('animation'); $theme = $this->getSetting('theme'); $reflection = $this->getSetting('reflection'); $summary[] = $this->t('Animation: @animation', array('@animation' => $this->animationOptions()[$animation])); $summary[] = $this->t('Speed: @speed', array('@speed' => $this->getSetting('speed') . 'ms')); $summary[] = $this->t('Theme: @theme', array('@theme' => $this->themeOptions()[$theme])); $summary[] = $this->t('Background: @css', array('@css' => $this->getSetting('background'))); $summary[] = $this->t('Reflection: @state', array('@state' => $reflection ? $this->t('Enabled') : $this->t('Disabled'))); if ($reflection) { $summary[] = t('Reflection opacity: @opacity', array('@opacity' => $this->getSetting('reflectionOpacity'))); } return $summary; }