Version 1
[yaffs-website] / web / core / modules / comment / tests / modules / comment_test / src / Controller / CommentTestController.php
diff --git a/web/core/modules/comment/tests/modules/comment_test/src/Controller/CommentTestController.php b/web/core/modules/comment/tests/modules/comment_test/src/Controller/CommentTestController.php
new file mode 100644 (file)
index 0000000..871fa7b
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+
+namespace Drupal\comment_test\Controller;
+
+use Drupal\comment\CommentInterface;
+use Drupal\Core\Controller\ControllerBase;
+
+/**
+ * Controller for the comment_test.module.
+ */
+class CommentTestController extends ControllerBase {
+
+  /**
+   * Provides a comment report.
+   */
+  public function commentReport(CommentInterface $comment) {
+    return ['#markup' => $this->t('Report for a comment')];
+  }
+
+}