/** * {@inheritdoc} */ public function settingsSummary() { $summary = parent::settingsSummary(); if ($this->getSetting('required_fields')) { $summary[] = $this->t('Mark as required'); } if ($this->getSetting('description')) { $summary[] = $this->t('Description : @description', array('@description' => $this->getSetting('description'))); } return $summary; }
/** * {@inheritdoc} */ public function settingsSummary() { $summary = parent::settingsSummary(); $summary[] = $this->t('Element: @element', array('@element' => $this->getSetting('element'))); if ($this->getSetting('show_label')) { $summary[] = $this->t('Label element: @element', array('@element' => $this->getSetting('label_element'))); } if ($this->getSetting('attributes')) { $summary[] = $this->t('Attributes: @attributes', array('@attributes' => $this->getSetting('attributes'))); } if ($this->getSetting('required_fields')) { $summary[] = $this->t('Mark as required'); } return $summary; }
/** * {@inheritdoc} */ public function settingsSummary() { $summary = parent::settingsSummary(); if ($this->getSetting('effect') != 'none') { $summary[] = $this->t('Effect : @effect', array('@effect' => $this->getSetting('effect'))); $summary[] = $this->t('Speed : @speed', array('@speed' => $this->getSetting('speed'))); } if ($this->getSetting('show_label')) { $summary[] = $this->t('Label element @element', array('@element' => $this->getSetting('label_element'))); } if ($this->getSetting('required_fields')) { $summary[] = $this->t('Mark as required'); } if ($this->getSetting('description')) { $summary[] = $this->t('Description : @description', array('@description' => $this->getSetting('description'))); } return $summary; }
/** * {@inheritdoc} */ public function settingsSummary() { $summary = parent::settingsSummary(); $summary[] = $this->t('Direction: @direction', array('@direction' => $this->getSetting('direction'))); return $summary; }
/** * {@inheritdoc} */ public function settingsSummary() { $summary = parent::settingsSummary(); $summary[] = \Drupal::translation()->translate('Direction: @direction', array('@direction' => $this->getSetting('direction'))); return $summary; }