You are here

function hook_path_delete in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/path/path.api.php \hook_path_delete()

Respond to a path being deleted.

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::delete()

Related topics

2 functions implement hook_path_delete()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

menu_link_content_path_delete in core/modules/menu_link_content/menu_link_content.module
Implements hook_path_delete().
system_path_delete in core/modules/system/system.module
Implements hook_path_delete().
1 invocation of hook_path_delete()
AliasStorage::delete in core/lib/Drupal/Core/Path/AliasStorage.php
Deletes a URL alias.

File

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

Code

function hook_path_delete($path) {
  db_delete('mytable')
    ->condition('pid', $path['pid'])
    ->execute();
}