diff --git a/src/Service/HootsuitePostManager.php b/src/Service/HootsuitePostManager.php index f4ed8f5bd55045ecfe81528e9e76340e9153b1e5..4dabae65e6e6d2b3e513a4395fadac4b30f240d4 100644 --- a/src/Service/HootsuitePostManager.php +++ b/src/Service/HootsuitePostManager.php @@ -205,11 +205,12 @@ class HootsuitePostManager { /** @var \Drupal\Core\Entity\Entity $entity */ $assignment->save(); $this->logger->notice( - $this->t('Created post for @profile with id @id.'), + $this->t('Created post for @profile with id @id.', [ '@profile' => $assignment->field_hs_profile_name->value, '@id' => $assignment->field_hs_post_id->value, ] + ) ); $this->messenger->addMessage( $this->t('The post for @profile has been successfully scheduled.', @@ -221,11 +222,12 @@ class HootsuitePostManager { } else { $this->logger->notice( - $this->t('Fail creating post for @profile with id @id.'), + $this->t('Fail creating post for @profile with id @id.', [ '@profile' => $assignment->field_hs_profile_name->value, '@id' => $assignment->field_hs_post_id->value, ] + ) ); $this->messenger->addWarning( $this->t('Failed posting for @profile.', @@ -256,11 +258,12 @@ class HootsuitePostManager { $this->hootsuiteClient->connect('delete', $url); if (!$update) { $this->logger->notice( - $this->t('Deleted post for @profile with id @id.'), + $this->t('Deleted post for @profile with id @id.', [ '@profile' => $assignment->field_hs_profile_name->value, '@id' => $assignment->field_hs_post_id->value, ] + ) ); $this->messenger->addMessage( $this->t('Deleted post for @profile.',