Web Technology Kitchen

We provide the general public with website and other technology services. We'll create new great websites, maintain them, do security for them, and we also do automation and any other workflow you need. Websites, Drupal, Python, C#, Unity, automation, APIs, VR/AR, gaming, mobile, responsive design, please be in touch for a consultation at jbarnett@barnettech.com. Feel free to peruse our blog postings below.

Drupal 8 basic query work

$connection = \Drupal::database();
    $query = $connection->query("SELECT * FROM {node} n WHERE type > :type", [
      ':type' => 'article',
    $result = $query->fetchAll();
    foreach ($result as $item) {
      $node = \Drupal\node\Entity\Node::load($item->nid);
      $title = $node->get('title')->getValue();
      $title = $title[0]['value']);