public function CommentTestController::commentReport in Drupal 8
Same name and namespace in other branches
- 9 core/modules/comment/tests/modules/comment_test/src/Controller/CommentTestController.php \Drupal\comment_test\Controller\CommentTestController::commentReport()
Provides a comment report.
1 string reference to 'CommentTestController::commentReport'
- comment_test.routing.yml in core/
modules/ comment/ tests/ modules/ comment_test/ comment_test.routing.yml - core/modules/comment/tests/modules/comment_test/comment_test.routing.yml
File
- core/
modules/ comment/ tests/ modules/ comment_test/ src/ Controller/ CommentTestController.php, line 16
Class
- CommentTestController
- Controller for the comment_test.module.
Namespace
Drupal\comment_test\ControllerCode
public function commentReport(CommentInterface $comment) {
return [
'#markup' => $this
->t('Report for a comment'),
];
}