Skip to content
Snippets Groups Projects
Commit 2c75cf21 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2297479 by er.pushpinderrana | marcingy: Remove comment_load function.

parent a0718108
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -956,27 +956,6 @@ function comment_user_predelete($account) { ...@@ -956,27 +956,6 @@ function comment_user_predelete($account) {
entity_delete_multiple('comment', $cids); entity_delete_multiple('comment', $cids);
} }
/**
* Loads the entire comment by comment ID.
*
* @param int $cid
* The ID of the comment to be loaded.
* @param bool $reset
* (optional) Whether to reset the internal static entity cache.
*
* @return \Drupal\comment\CommentInterface
* The comment object.
*
* @deprecated in Drupal 8.x, will be removed before Drupal 9.0.
* Use \Drupal\comment\Entity\Comment::load().
*/
function comment_load($cid, $reset = FALSE) {
if ($reset) {
\Drupal::entityManager()->getStorage('comment')->resetCache(array($cid));
}
return Comment::load($cid);
}
/** /**
* Gets the number of new comments for the current user and the specified node. * Gets the number of new comments for the current user and the specified node.
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment