CommentTestController.php in Zircon Profile 8
Same filename and directory in other branches
Namespace
Drupal\comment_test\ControllerFile
core/modules/comment/tests/modules/comment_test/src/Controller/CommentTestController.phpView source
<?php
/**
* @file
* Contains \Drupal\comment_test\Controller\CommentTestController.
*/
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'),
];
}
}
Classes
Name | Description |
---|---|
CommentTestController | Controller for the comment_test.module. |