diff --git a/src/Plugin/views/field/JobState.php b/src/Plugin/views/field/JobState.php index f614839..02210d9 100644 --- a/src/Plugin/views/field/JobState.php +++ b/src/Plugin/views/field/JobState.php @@ -4,6 +4,7 @@ namespace Drupal\advancedqueue\Plugin\views\field; use Drupal\advancedqueue\Job; use Drupal\Core\Form\FormStateInterface; +use Drupal\Core\StringTranslation\TranslatableMarkup; use Drupal\views\Plugin\views\field\FieldPluginBase; use Drupal\views\ResultRow; @@ -70,10 +71,10 @@ class JobState extends FieldPluginBase { */ public static function getOptions() { return [ - Job::STATE_QUEUED => t('Queued'), - Job::STATE_PROCESSING => t('Processing'), - Job::STATE_SUCCESS => t('Success'), - Job::STATE_FAILURE => t('Failure'), + Job::STATE_QUEUED => new TranslatableMarkup('Queued'), + Job::STATE_PROCESSING => new TranslatableMarkup('Processing'), + Job::STATE_SUCCESS => new TranslatableMarkup('Success'), + Job::STATE_FAILURE => new TranslatableMarkup('Failure'), ]; }