v1/vendor/chi-teck/drupal-code-generator/templates/hook/path_delete.twig

9 lines
188 B
Twig

/**
* Implements hook_path_delete().
*/
function {{ machine_name }}_path_delete($path) {
\Drupal::database()->delete('mytable')
->condition('pid', $path['pid'])
->execute();
}