function CommentTestController::commentReport

Same name and namespace in other branches
  1. 9 core/modules/comment/tests/modules/comment_test/src/Controller/CommentTestController.php \Drupal\comment_test\Controller\CommentTestController::commentReport()
  2. 8.9.x core/modules/comment/tests/modules/comment_test/src/Controller/CommentTestController.php \Drupal\comment_test\Controller\CommentTestController::commentReport()
  3. 10 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 <a href="/api/drupal/core%21modules%21comment%21tests%21modules%21comment_test%21comment_test.module/11.x" title="Implements comment-related hooks to test API interactions." class="local">comment_test.module</a>.

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.