hook_path_update($path)
Respond to a path being updated.
array $path: The array structure is identical to that of the return value of \Drupal\Core\Path\PathInterface::save().
\Drupal\Core\Path\PathInterface::save()
function hook_path_update($path) { if ($path['alias'] != $path['original']['alias']) { db_update('mytable') ->fields(array('alias' => $path['alias'])) ->condition('pid', $path['pid']) ->execute(); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!path!path.api.php/function/hook_path_update/8.1.x