コード例 #1
0
ファイル: Fieldset.php プロジェクト: frankcr/sftw8
 /**
  * {@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;
 }
コード例 #2
0
ファイル: HtmlElement.php プロジェクト: lokeoke/d8intranet
 /**
  * {@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;
 }
コード例 #3
0
ファイル: Div.php プロジェクト: lokeoke/d8intranet
 /**
  * {@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;
 }
コード例 #4
0
ファイル: Tabs.php プロジェクト: lokeoke/d8intranet
 /**
  * {@inheritdoc}
  */
 public function settingsSummary()
 {
     $summary = parent::settingsSummary();
     $summary[] = $this->t('Direction: @direction', array('@direction' => $this->getSetting('direction')));
     return $summary;
 }
コード例 #5
0
ファイル: Tabs.php プロジェクト: Nikola-xiii/d8intranet
 /**
  * {@inheritdoc}
  */
 public function settingsSummary()
 {
     $summary = parent::settingsSummary();
     $summary[] = \Drupal::translation()->translate('Direction: @direction', array('@direction' => $this->getSetting('direction')));
     return $summary;
 }