hook_path_update

function hook_path_update

hook_path_update($path)

Respond to a path being updated.

Parameters

array $path: The array structure is identical to that of the return value of \Drupal\Core\Path\PathInterface::save().

See also

\Drupal\Core\Path\PathInterface::save()

Related topics

Hooks
Define functions that alter the behavior of Drupal core.

File

core/modules/path/path.api.php, line 40
Hooks provided by the Path module.

Code

function hook_path_update($path) {
  if ($path['alias'] != $path['original']['alias']) {
    db_update('my