From 749ee8a8a7bf29d4dd60e01828500f27b8272b5e Mon Sep 17 00:00:00 2001 From: xjm Date: Mon, 16 Jan 2023 18:21:59 -0600 Subject: [PATCH] Issue #3307509 followup by xjm: Add return typehint and correct return value documentation. --- core/modules/views/src/Plugin/views/field/BulkForm.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/modules/views/src/Plugin/views/field/BulkForm.php b/core/modules/views/src/Plugin/views/field/BulkForm.php index 2edd8015984..fe6a844e4b6 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\Form\FormStateInterface; 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 @@ class BulkForm extends FieldPluginBase implements CacheableDependencyInterface { /** * 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']]); }