Inform modules that a menu link has been deleted.
This hook is used to notify modules that menu links have been deleted. Contributed modules may use the information to perform actions based on the information entered into the menu system.
\Drupal\menu_link\Plugin\Core\Entity\MenuLink $menu_link: A menu link entity.
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_menu_link_delete(\Drupal\menu_link\Plugin\Core\Entity\MenuLink $menu_link) {
// Delete the record from our table.
db_delete('menu_example')
->condition('mlid', $menu_link
->id())
->execute();
}