CommentTestController.php
Same filename and directory in other branches
- 11.x core/modules/comment/tests/modules/comment_test/src/Controller/CommentTestController.php
- 10 core/modules/comment/tests/modules/comment_test/src/Controller/CommentTestController.php
- 9 core/modules/comment/tests/modules/comment_test/src/Controller/CommentTestController.php
- 8.9.x core/modules/comment/tests/modules/comment_test/src/Controller/CommentTestController.php
Namespace
Drupal\comment_test\ControllerFile
-
core/
modules/ comment/ tests/ modules/ comment_test/ src/ Controller/ CommentTestController.php
View source
<?php
declare (strict_types=1);
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
| Title | Deprecated | Summary |
|---|---|---|
| CommentTestController | Controller for the comment_test.module. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.