/** * {@inheritdoc} */ public function getSummary() { $summary = parent::getSummary(); $create = $this->configuration['autocreate'] ? 'Yes' : 'No'; return $summary . '<br>' . $this->t('Autocreate terms: %create', array('%create' => $create)); }
/** * {@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]); }