Mercurial > hg > isophonics-drupal-site
diff core/modules/path/path.api.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 1fec387a4317 |
children |
line wrap: on
line diff
--- a/core/modules/path/path.api.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/path/path.api.php Thu May 09 15:33:08 2019 +0100 @@ -20,7 +20,7 @@ * @see \Drupal\Core\Path\AliasStorageInterface::save() */ function hook_path_insert($path) { - db_insert('mytable') + \Drupal::database()->insert('mytable') ->fields([ 'alias' => $path['alias'], 'pid' => $path['pid'], @@ -39,7 +39,7 @@ */ function hook_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(); @@ -56,7 +56,7 @@ * @see \Drupal\Core\Path\AliasStorageInterface::delete() */ function hook_path_delete($path) { - db_delete('mytable') + \Drupal::database()->delete('mytable') ->condition('pid', $path['pid']) ->execute(); }