diff --git a/core/modules/comment/lib/Drupal/comment/Controller/CommentController.php b/core/modules/comment/lib/Drupal/comment/Controller/CommentController.php index 3d27901..a02b05b 100644 --- a/core/modules/comment/lib/Drupal/comment/Controller/CommentController.php +++ b/core/modules/comment/lib/Drupal/comment/Controller/CommentController.php @@ -7,6 +7,7 @@ namespace Drupal\comment\Controller; +use Drupal\comment\CommentInterface; use Drupal\comment\Plugin\Core\Entity\Comment; use Drupal\Core\Controller\ControllerInterface; use Symfony\Component\DependencyInjection\ContainerInterface; @@ -39,13 +40,13 @@ public function __construct() { * * @param \Symfony\Component\HttpFoundation\Request $request * The request object. - * @param \Drupal\comment\Plugin\Core\Entity\Comment $comment + * @param \Drupal\comment\CommentInterface $comment * A comment entity. * * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException * @return \Symfony\Component\HttpFoundation\RedirectResponse. */ - function commentApprove(Request $request, Comment $comment) { + function commentApprove(Request $request, CommentInterface $comment) { // @todo CRSF tokens are validated in the content controller until it gets // moved to the access layer: // Integrate CSRF link token directly into routing system: