diff --git a/core/modules/node/src/Plugin/Search/NodeSearch.php b/core/modules/node/src/Plugin/Search/NodeSearch.php index 53932d9..aca698c 100644 --- a/core/modules/node/src/Plugin/Search/NodeSearch.php +++ b/core/modules/node/src/Plugin/Search/NodeSearch.php @@ -333,9 +333,8 @@ protected function prepareResults(StatementInterface $found) { $build['#pre_render'][] = array($this, 'removeSubmittedInfo'); // Fetch comment count for snippet. - $built = $this->renderer->renderPlain($build); - $comments = $this->moduleHandler->invoke('comment', 'node_update_index', array($node, $item->langcode)); - $rendered = SafeMarkup::format('@built @comments', ['@built' => $built, '@comments' => $comments]); + $rendered = $this->renderer->renderPlain($build); + $rendered .= ' ' . $this->moduleHandler->invoke('comment', 'node_update_index', array($node, $item->langcode)); $extra = $this->moduleHandler->invokeAll('node_search_result', array($node, $item->langcode));