function CommentController::renderNewCommentsNodeLinks
Returns a set of nodes' last read timestamps.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The request of the page.
Return value
\Symfony\Component\HttpFoundation\JsonResponse The JSON response.
Throws
\Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException
\Symfony\Component\HttpKernel\Exception\NotFoundHttpException
Deprecated
in drupal:11.3.0 and is removed from drupal:12.0.0. Use \Drupal\history\Controller\HistoryController::renderNewCommentsNodeLinks instead.
See also
https://www.drupal.org/node/3543039
1 string reference to 'CommentController::renderNewCommentsNodeLinks'
- comment.routing.yml in core/
modules/ comment/ comment.routing.yml - core/modules/comment/comment.routing.yml
File
-
core/
modules/ comment/ src/ Controller/ CommentController.php, line 338
Class
- CommentController
- Controller for the comment entity.
Namespace
Drupal\comment\ControllerCode
public function renderNewCommentsNodeLinks(Request $request) {
@trigger_error(__FUNCTION__ . ' is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. Use \\Drupal\\history\\Controller\\HistoryController::renderNewCommentsNodeLinks instead. See https://www.drupal.org/node/3543039', E_USER_DEPRECATED);
if (!$this->moduleHandler()
->moduleExists('history')) {
throw new NotFoundHttpException();
}
/** @var \Drupal\Core\Controller\ControllerResolver $resolver */
$resolver = \Drupal::service('controller_resolver');
$controller = $resolver->getControllerFromDefinition('\\Drupal\\history\\Controller\\HistoryController::renderNewCommentsNodeLinks');
return $controller($request);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.