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(); }
Please login to continue.