You are here

public function UnapprovedComments::getTitle in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/comment/src/Plugin/Menu/LocalTask/UnapprovedComments.php \Drupal\comment\Plugin\Menu\LocalTask\UnapprovedComments::getTitle()

Returns the localized title to be shown for this tab.

Subclasses may add optional arguments like NodeInterface $node = NULL that will be supplied by the ControllerResolver.

Return value

string The title of the local task.

Overrides LocalTaskDefault::getTitle

File

core/modules/comment/src/Plugin/Menu/LocalTask/UnapprovedComments.php, line 61
Contains \Drupal\comment\Plugin\Menu\LocalTask\UnapprovedComments.

Class

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

Namespace

Drupal\comment\Plugin\Menu\LocalTask

Code

public function getTitle() {
  return $this
    ->t('Unapproved comments (@count)', array(
    '@count' => $this->commentStorage
      ->getUnapprovedCount(),
  ));
}