Im building a custom filter in Drupal 8 based on some queries.
I got this already, here im filtering by values on body:
$query = db_select('node__body', 'n')
->fields('n')
->condition('n.body_value', "%" . $searchWord . "%", 'LIKE')
->condition('n.bundle', 'mycontenttype');
$getList = $query->execute()->fetchAll();
Then i pass the variable to the Twig:
return [
'#filters' => $getList,
In the twig im doing:
{% for oneItem in filters %}
But im unable to get the title of the node here, what im missing?