Друпал 8 - Запрос к Базе данных

<?php
/**
* @return
* Contains \Drupal\summ\Controller\FirstPageController.
*/

namespace Drupal\summ\Controller;

/**
* Provides route responses for the DrupalBook module.
*/
class FirstPageController {

/**
* Returns a simple page.
*
* @return array
* A simple renderable array.
*/
public function content() {

$r = db_query("SELECT * FROM node_field_data WHERE nid=2")->fetchObject();

$element = array(
'#markup' => $r->title,
);
return $element;
}

}