Commit 2c75cf21 authored by alexpott's avatar alexpott

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

parent a0718108
......@@ -956,27 +956,6 @@ function comment_user_predelete($account) {
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.
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment