diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module index 39ccbc2..6088726 100644 --- a/core/modules/comment/comment.module +++ b/core/modules/comment/comment.module @@ -1166,7 +1166,7 @@ function comment_node_predelete(EntityInterface $node) { /** * Implements hook_node_update_index(). */ -function comment_node_update_index(EntityInterface $node, $langcode) { +function comment_node_update_index(EntityInterface $node) { $index_comments = &drupal_static(__FUNCTION__); if ($index_comments === NULL) { diff --git a/core/modules/node/node.api.php b/core/modules/node/node.api.php index c814f0e..9a6959c 100644 --- a/core/modules/node/node.api.php +++ b/core/modules/node/node.api.php @@ -691,15 +691,13 @@ function hook_node_update(\Drupal\Core\Entity\EntityInterface $node) { * * @param \Drupal\Core\Entity\EntityInterface $node * The node being indexed. - * @param $langcode - * Language code of the variant of the node being indexed. * * @return string * Additional node information to be indexed. * * @ingroup node_api_hooks */ -function hook_node_update_index(\Drupal\Core\Entity\EntityInterface $node, $langcode) { +function hook_node_update_index(\Drupal\Core\Entity\EntityInterface $node) { $text = ''; $comments = db_query('SELECT subject, comment, format FROM {comment} WHERE nid = :nid AND status = :status', array(':nid' => $node->id(), ':status' => COMMENT_PUBLISHED)); foreach ($comments as $comment) {