CommentController::commentPermalinkTitle

public CommentController::commentPermalinkTitle(CommentInterface $comment)

The _title_callback for the page that renders the comment permalink.

Parameters

\Drupal\comment\CommentInterface $comment: The current comment.

Return value

string The translated comment subject.

File

core/modules/comment/src/Controller/CommentController.php, line 157

Class

CommentController
Controller for the comment entity.

Namespace

Drupal\comment\Controller

Code

public function commentPermalinkTitle(CommentInterface $comment) {
  return $this->entityManager()->getTranslationFromContext($comment)->label();
}
doc_Drupal
2016-10-29 08:50:33
Comments
Leave a Comment

Please login to continue.