Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
Archivo: File.php Proyecto: 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]);
 }