summaryrefslogtreecommitdiffstatshomepage
path: root/core/modules/media
diff options
context:
space:
mode:
authornod_ <nod_@598310.no-reply.drupal.org>2025-02-22 23:51:17 +0900
committernod_ <nod_@598310.no-reply.drupal.org>2025-02-22 23:51:17 +0900
commite4df448ef014ba9b4dc8ed9813177e93a77d968c (patch)
tree9ea4906b6b2c52b4cde7f53873af28be3b94592e /core/modules/media
parent46a843d6d8e68dac836426b492fb42b8b516b48e (diff)
downloaddrupal-e4df448ef014ba9b4dc8ed9813177e93a77d968c.tar.gz
drupal-e4df448ef014ba9b4dc8ed9813177e93a77d968c.zip
Issue #3133726 by quietone, manuel garcia, longwave, chaitanyadessai, adeshsharma, hardik_patel_12, paulocs, xjm, mohrerao, mrinalini9, mile23, lokapujya, dawehner, duaelfr, geertvd, joelpittet: [meta] Remove usage of t() in tests not testing translation
Diffstat (limited to 'core/modules/media')
-rw-r--r--core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/Test.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/Test.php b/core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/Test.php
index 8fb0d347bac..544fe4268ff 100644
--- a/core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/Test.php
+++ b/core/modules/media/tests/modules/media_test_source/src/Plugin/media/Source/Test.php
@@ -30,8 +30,8 @@ class Test extends MediaSourceBase {
// change the metadata attributes and makes it easier to test different
// variations.
$attributes = \Drupal::state()->get('media_source_test_attributes', [
- 'attribute_1' => ['label' => $this->t('Attribute 1'), 'value' => 'Value 1'],
- 'attribute_2' => ['label' => $this->t('Attribute 2'), 'value' => 'Value 1'],
+ 'attribute_1' => ['label' => 'Attribute 1', 'value' => 'Value 1'],
+ 'attribute_2' => ['label' => 'Attribute 2', 'value' => 'Value 1'],
]);
return array_map(function ($item) {
return $item['label'];
@@ -43,8 +43,8 @@ class Test extends MediaSourceBase {
*/
public function getMetadata(MediaInterface $media, $attribute_name) {
$attributes = \Drupal::state()->get('media_source_test_attributes', [
- 'attribute_1' => ['label' => $this->t('Attribute 1'), 'value' => 'Value 1'],
- 'attribute_2' => ['label' => $this->t('Attribute 2'), 'value' => 'Value 1'],
+ 'attribute_1' => ['label' => 'Attribute 1', 'value' => 'Value 1'],
+ 'attribute_2' => ['label' => 'Attribute 2', 'value' => 'Value 1'],
]);
if (in_array($attribute_name, array_keys($attributes))) {
@@ -81,7 +81,7 @@ class Test extends MediaSourceBase {
$form['test_config_value'] = [
'#type' => 'textfield',
- '#title' => $this->t('Test config value'),
+ '#title' => 'Test config value',
'#default_value' => $this->configuration['test_config_value'],
];