function views_url_alias_path_delete in Views URL alias 8.2
Respond to a path being deleted.
Parameters
array $path: The array structure is identical to that of the return value of \Drupal\Core\Path\AliasStorageInterface::save().
See also
\Drupal\Core\Path\AliasStorageInterface::delete()
File
- ./
views_url_alias.module, line 81 - Allows content entity Views to be filtered by path aliases.
Code
function views_url_alias_path_delete($path) {
$entity = get_path_enitiy_type($path['source']);
if ($entity) {
views_url_alias_save($entity);
}
}