X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcomment%2Fsrc%2FPlugin%2FMenu%2FLocalTask%2FUnapprovedComments.php;fp=web%2Fcore%2Fmodules%2Fcomment%2Fsrc%2FPlugin%2FMenu%2FLocalTask%2FUnapprovedComments.php;h=e946bfb9f8ace673708bfe83c1310a91a84c96e5;hp=89542d34ff3f04ee17ec816c70aa84eb13f08c6f;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/comment/src/Plugin/Menu/LocalTask/UnapprovedComments.php b/web/core/modules/comment/src/Plugin/Menu/LocalTask/UnapprovedComments.php index 89542d34f..e946bfb9f 100644 --- a/web/core/modules/comment/src/Plugin/Menu/LocalTask/UnapprovedComments.php +++ b/web/core/modules/comment/src/Plugin/Menu/LocalTask/UnapprovedComments.php @@ -7,6 +7,7 @@ use Drupal\Core\Menu\LocalTaskDefault; use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\Core\StringTranslation\StringTranslationTrait; use Symfony\Component\DependencyInjection\ContainerInterface; +use Symfony\Component\HttpFoundation\Request; /** * Provides a local task that shows the amount of unapproved comments. @@ -53,7 +54,7 @@ class UnapprovedComments extends LocalTaskDefault implements ContainerFactoryPlu /** * {@inheritdoc} */ - public function getTitle() { + public function getTitle(Request $request = NULL) { return $this->t('Unapproved comments (@count)', ['@count' => $this->commentStorage->getUnapprovedCount()]); }