function CommentTestController::commentReport

Same name in other branches
  1. 9 core/modules/comment/tests/modules/comment_test/src/Controller/CommentTestController.php \Drupal\comment_test\Controller\CommentTestController::commentReport()
  2. 10 core/modules/comment/tests/modules/comment_test/src/Controller/CommentTestController.php \Drupal\comment_test\Controller\CommentTestController::commentReport()
  3. 11.x 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\Controller

Code

public function commentReport(CommentInterface $comment) {
    return [
        '#markup' => $this->t('Report for a comment'),
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.