function CommentController::replyFormTitle
Title callback for the reply form.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity this comment belongs to.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The reply form title.
1 string reference to 'CommentController::replyFormTitle'
- comment.routing.yml in core/
modules/ comment/ comment.routing.yml - core/modules/comment/comment.routing.yml
File
-
core/
modules/ comment/ src/ Controller/ CommentController.php, line 267
Class
- CommentController
- Controller for the comment entity.
Namespace
Drupal\comment\ControllerCode
public function replyFormTitle(EntityInterface $entity) : TranslatableMarkup {
return $this->t('Add new comment to %label', [
'%label' => $entity->label(),
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.