Skip to content
Snippets Groups Projects
Commit bc90a951 authored by xiaohua guan's avatar xiaohua guan Committed by Yas Naoi
Browse files

Issue #3223740 by Xiaohua Guan, yas: Fix the Declaration error about PluralTranslatableMarkup

parent 67baff4a
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ use Drupal\Core\Messenger\MessengerInterface;
use Drupal\Core\Security\TrustedCallbackInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\StringTranslation\PluralTranslatableMarkup;
use Drupal\Core\TempStore\PrivateTempStoreFactory;
use Drupal\Core\TypedData\TranslatableInterface;
use Drupal\Core\Url;
......@@ -334,10 +335,10 @@ abstract class CloudProcessMultipleForm extends ConfirmFormBase implements BaseF
* @param int $count
* Count of processed translations.
*
* @return \Drupal\Core\StringTranslation\TranslatableMarkup
* @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup
* The item processed message.
*/
protected function getProcessedMessage($count): TranslatableMarkup {
protected function getProcessedMessage($count): PluralTranslatableMarkup {
return $this->formatPlural($count, 'Processed @count item.', 'Processed @count items.');
}
......@@ -348,10 +349,10 @@ abstract class CloudProcessMultipleForm extends ConfirmFormBase implements BaseF
* @param int $count
* Count of processed translations.
*
* @return \Drupal\Core\StringTranslation\TranslatableMarkup
* @return \Drupal\Core\StringTranslation\PluralTranslatableMarkup
* The item inaccessible message.
*/
protected function getInaccessibleMessage($count): TranslatableMarkup {
protected function getInaccessibleMessage($count): PluralTranslatableMarkup {
return $this->formatPlural($count,
'@count item has not been processed because you do not have the necessary permissions.',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment