Example #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));
 }
Example #2
0
File: File.php Project: 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]);
 }