예제 #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]);
 }