function path_taxonomy_term_delete

Implements hook_taxonomy_term_delete().

File

drupal/core/modules/path/path.module, line 333
Enables users to rename URLs.

Code

function path_taxonomy_term_delete(Term $term) {

  // Delete all aliases associated with this term.
  Drupal::service('path.crud')
    ->delete(array(
    'source' => 'taxonomy/term/' . $term
      ->id(),
  ));
}