Skip to content
Snippets Groups Projects
Commit d2a1c9f6 authored by Mohamed Anis Taktak's avatar Mohamed Anis Taktak
Browse files

Correction views search snippet

parent 2797f691
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,7 @@ class Snippet extends NumericField {
$node_rendered = drupal_render($build);
// Fetch comment count for snippet.
//Todo:langcode
//$node_rendered .= ' ' . \Drupal::moduleHandler()->invoke('comment', 'node_update_index', array($node, $langcode));
$keys = $this->view->getExposedInput()['keys'];
$output = $node_rendered->__toString();
$snippet = search_excerpt($keys, $output);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment