Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d8 / hook / path_update.twig
index 4c6b157ea1d008e7abcbecd7b1966762e630993f..99b3fdb6efd60e3d311da21c962cd6abaf9d490b 100644 (file)
@@ -3,7 +3,7 @@
  */
 function {{ machine_name }}_path_update($path) {
   if ($path['alias'] != $path['original']['alias']) {
-    db_update('mytable')
+    \Drupal::database()->update('mytable')
       ->fields(['alias' => $path['alias']])
       ->condition('pid', $path['pid'])
       ->execute();