diff --git a/core/modules/views/src/Plugin/views/field/BulkForm.php b/core/modules/views/src/Plugin/views/field/BulkForm.php
index 2edd80159846be966276b9162939869a9ae34ffe..fe6a844e4b60ca3d91b8bf6689ee6e02565ffb55 100644
--- a/core/modules/views/src/Plugin/views/field/BulkForm.php
+++ b/core/modules/views/src/Plugin/views/field/BulkForm.php
@@ -11,6 +11,7 @@
 use Drupal\Core\Language\LanguageManagerInterface;
 use Drupal\Core\Messenger\MessengerInterface;
 use Drupal\Core\Routing\RedirectDestinationTrait;
+use Drupal\Core\StringTranslation\TranslatableMarkup;
 use Drupal\Core\TypedData\TranslatableInterface;
 use Drupal\views\Entity\Render\EntityTranslationRenderTrait;
 use Drupal\views\Plugin\views\display\DisplayPluginBase;
@@ -445,10 +446,10 @@ protected function emptySelectedMessage() {
   /**
    * Returns the message that is displayed when no action is selected.
    *
-   * @return string
+   * @return \Drupal\Core\StringTranslation\TranslatableMarkup
    *   Message displayed when no action is selected.
    */
-  protected function emptyActionMessage() {
+  protected function emptyActionMessage(): TranslatableMarkup {
     return $this->t('No %title option selected.', ['%title' => $this->options['action_title']]);
   }