Skip to content

Commit 4575149

Browse files
committed
Linting
1 parent 6e0cd5b commit 4575149

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/Plugin/QueueItem/NodeItem.php

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,13 @@ public function send() {
6161
}
6262

6363
if (!$entity) {
64-
\Drupal::logger('quant')->error('Failed to load entity for node ID: @id, revision ID: @vid', ['@id' => $this->id, '@vid' => $this->vid]);
64+
\Drupal::logger('quant')->error(
65+
'Failed to load entity for node ID: @id, revision ID: @vid',
66+
[
67+
'@id' => $this->id,
68+
'@vid' => $this->vid,
69+
]
70+
);
6571
return;
6672
}
6773

@@ -70,7 +76,13 @@ public function send() {
7076
continue;
7177
}
7278

73-
\Drupal::logger('quant_seed')->notice("Processing language {$langcode} for node {$this->id}");
79+
\Drupal::logger('quant_seed')->notice(
80+
'Processing language @langcode for node @id',
81+
[
82+
'@langcode' => $langcode,
83+
'@id' => $this->id,
84+
]
85+
);
7486

7587
// Get the specific translation, which provides more accurate published status.
7688
$translated_entity = $entity->getTranslation($langcode);

0 commit comments

Comments
 (0)