function comment_load_multiple

Loads comment entities from the database.

Parameters

array $cids: (optional) An array of entity IDs. If omitted, all entities are loaded.

bool $reset: Whether to reset the internal static entity cache. Note that the static cache is disabled in comment_entity_info() by default.

Return value

array An array of comment objects, indexed by comment ID.

See also

entity_load()

Drupal\Core\Entity\Query\QueryInterface

4 calls to comment_load_multiple()
comment_admin_overview in drupal/core/modules/comment/comment.admin.inc
Form constructor for the comment overview administration form.
comment_node_page_additions in drupal/core/modules/comment/comment.module
Builds the comment-related elements for node detail pages.
comment_node_update_index in drupal/core/modules/comment/comment.module
Implements hook_node_update_index().
Rss::pre_render in drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/row/Rss.php
Allow the style to do stuff before each row is rendered.

File

drupal/core/modules/comment/comment.module, line 1445
Enables users to comment on published content.

Code

function comment_load_multiple(array $cids = NULL, $reset = FALSE) {
  return entity_load_multiple('comment', $cids, $reset);
}