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 @type controls', ['@type' => static::getMimeType()]), + '#title' => $this->t('Show playback controls'), '#type' => 'checkbox', '#default_value' => $this->getSetting('controls'), ], @@ -87,11 +87,14 @@ $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')]); - 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() . '>']); + switch ($this->getSetting('multiple_file_behavior')) { + case 'tags': + $summary[] = $this->t('Multiple files: Multiple HTML tags'); + break; + + case 'sources': + $summary[] = $this->t('Multiple files: One HTML tag with multiple sources'); + break; } return $summary; }