Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UnapprovedComments.php

function UnapprovedComments::getTitle

Overrides LocalTaskDefault::getTitle

File

core/modules/comment/src/Plugin/Menu/LocalTask/UnapprovedComments.php, line 57

Class

UnapprovedComments
Provides a local task that shows the amount of unapproved comments.

Namespace

Drupal\comment\Plugin\Menu\LocalTask

Code

public function getTitle(?Request $request = NULL) {
    return $this->t('Unapproved comments (@count)', [
        '@count' => $this->commentStorage
            ->getUnapprovedCount(),
    ]);
}
RSS feed
Powered by Drupal