示例#1
0
 /**
  * {@inheritdoc}
  */
 public function getSummary()
 {
     $summary = parent::getSummary();
     $create = $this->configuration['autocreate'] ? 'Yes' : 'No';
     return $summary . '<br>' . $this->t('Autocreate terms: %create', array('%create' => $create));
 }
示例#2
0
文件: File.php 项目: Tawreh/mtg
 /**
  * {@inheritdoc}
  */
 public function getSummary()
 {
     $summary = parent::getSummary();
     switch ($this->configuration['existing']) {
         case FILE_EXISTS_REPLACE:
             $message = 'Replace';
             break;
         case FILE_EXISTS_RENAME:
             $message = 'Rename';
             break;
         case FILE_EXISTS_ERROR:
             $message = 'Ignore';
             break;
     }
     return $summary . '<br>' . $this->t('Exsting files: %existing', ['%existing' => $message]);
 }