class CommentTestController

Same name and namespace in other branches
  1. 11.x core/modules/comment/tests/modules/comment_test/src/Controller/CommentTestController.php \Drupal\comment_test\Controller\CommentTestController

Controller for the comment_test.module.

Hierarchy

Expanded class hierarchy of CommentTestController

File

core/modules/comment/tests/modules/comment_test/src/Controller/CommentTestController.php, line 11

Namespace

Drupal\comment_test\Controller
View source
class CommentTestController extends ControllerBase {
  
  /**
   * Provides a comment report.
   */
  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.