5 * Hooks provided by the Path module.
14 * Respond to a path being inserted.
17 * The array structure is identical to that of the return value of
18 * \Drupal\Core\Path\PathInterface::save().
20 * @see \Drupal\Core\Path\PathInterface::save()
22 function hook_path_insert($path) {
25 'alias' => $path['alias'],
26 'pid' => $path['pid'],
32 * Respond to a path being updated.
35 * The array structure is identical to that of the return value of
36 * \Drupal\Core\Path\PathInterface::save().
38 * @see \Drupal\Core\Path\PathInterface::save()
40 function hook_path_update($path) {
41 if ($path['alias'] != $path['original']['alias']) {
43 ->fields(['alias' => $path['alias']])
44 ->condition('pid', $path['pid'])
50 * Respond to a path being deleted.
53 * The array structure is identical to that of the return value of
54 * \Drupal\Core\Path\PathInterface::save().
56 * @see \Drupal\Core\Path\PathInterface::delete()
58 function hook_path_delete($path) {
60 ->condition('pid', $path['pid'])
65 * @} End of "addtogroup hooks".