You are here

function _auto_index_comment_index in Auto Index 8

Update the node attached to a comment.

5 calls to _auto_index_comment_index()
auto_index_comment_delete in ./auto_index.module
Implementation of hook_ENTITY_TYPE_delete().
auto_index_comment_insert in ./auto_index.module
Implementation of hook_ENTITY_TYPE_insert().
auto_index_comment_publish in ./auto_index.module
Implementation of hook_ENTITY_TYPE_publish().
auto_index_comment_unpublish in ./auto_index.module
Implementation of hook_ENTITY_TYPE_unpublish().
auto_index_comment_update in ./auto_index.module
Implementation of hook_ENTITY_TYPE_update().

File

./auto_index.module, line 78
Auto-index: Automatically indexes node content on update.

Code

function _auto_index_comment_index(CommentInterface &$comment) {

  // Do the indexing.
  _auto_index_node_index($comment
    ->getCommentedEntity());
}