Skip to content

Commit ea85fce

Browse files
committed
More CS fix, failing test
1 parent 512330b commit ea85fce

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

field_example/src/Plugin/Field/FieldWidget/Text3Widget.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen
4242
];
4343

4444
// Add in the RGB textfield elements.
45-
foreach (['r' => $this->t('Red'), 'g' => $this->t('Green'), 'b' => $this->t('Blue')] as $key => $title) {
45+
foreach ([
46+
'r' => $this->t('Red'),
47+
'g' => $this->t('Green'),
48+
'b' => $this->t('Blue'),
49+
] as $key => $title) {
4650
$element[$key] = [
4751
'#type' => 'textfield',
4852
'#title' => $title,

js_example/src/Controller/JsExampleController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Drupal\js_example\Controller;
44

5+
use Drupal\Core\StringTranslation\StringTranslationTrait;
56
use Drupal\examples\Utility\DescriptionTemplateTrait;
67

78
/**
@@ -11,7 +12,9 @@
1112
* templates/description.html.twig file.
1213
*/
1314
class JsExampleController {
15+
1416
use DescriptionTemplateTrait;
17+
use StringTranslationTrait;
1518

1619
/**
1720
* {@inheritdoc}

0 commit comments

Comments
 (0)