diff -u b/core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php b/core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php --- b/core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php +++ b/core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php @@ -32,7 +32,7 @@ public function settingsForm(array $form, FormStateInterface $form_state) { return [ 'controls' => [ - '#title' => $this->t('Show audio controls'), + '#title' => $this->t('Show @type controls', ['@type' => static::getMimeType()]), '#type' => 'checkbox', '#default_value' => $this->getSetting('controls'), ], @@ -87,7 +87,12 @@ $summary[] = $this->t('Controls: %controls', ['%controls' => $this->getSetting('controls') ? $this->t('visible') : $this->t('hidden')]); $summary[] = $this->t('Autoplay: %autoplay', ['%autoplay' => $this->getSetting('autoplay') ? $this->t('yes') : $this->t('no')]); $summary[] = $this->t('Loop: %loop', ['%loop' => $this->getSetting('loop') ? $this->t('yes') : $this->t('no')]); - $summary[] = $this->t('Multiple files: %multiple', ['%multiple' => $this->getSetting('multiple_file_behavior')]); + if ($this->getSetting('multiple_file_behavior') === 'tags') { + $summary[] = $this->t('Multiple files: Multiple %tag tags', ['%tag' => '<' . static::getMimeType() . '>']); + } + elseif ($this->getSetting('multiple_file_behavior') === 'sources') { + $summary[] = $this->t('Multiple files: One %tag tag with multiple sources', ['%tag' => '<' . static::getMimeType() . '>']); + } return $summary; } @@ -142,7 +147,7 @@ } /** - * Check if given MIME type applies to formatter one. + * Check if given MIME type applies to the one of the formatter. * * @param string $mime_type * The complete MIME type.