Verified Commit 749ee8a8 authored by Jess's avatar Jess
Browse files

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

parent 9faff8ca
......@@ -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']]);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment