Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / path_update.twig
1 /**
2  * Implements hook_path_update().
3  */
4 function {{ machine_name }}_path_update($path) {
5   db_update('mytable')
6     ->fields(array('alias' => $path['alias']))
7     ->condition('pid', $path['pid'])
8     ->execute();
9 }