Issue #3307509 followup by xjm: Add return typehint and correct return value documentation.

merge-requests/3260/head
xjm 2023-01-16 18:21:59 -06:00
parent 9faff8cae8
commit 749ee8a8a7
No known key found for this signature in database
GPG Key ID: 206B0B8743BDF4C2
1 changed files with 3 additions and 2 deletions

View File

@ -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']]);
}