3
votes
Accepted
How to delete the existing alias in drupal 9 / 10
Delete path alias: Drupal(8/9/10)
$path_alias_manager = \Drupal::entityTypeManager()->getStorage('path_alias');
// Load path alias by path
$alias_objects = $path_alias_manager->loadByProperties([...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
path-aliases × 8427 × 244
8 × 147
views × 125
taxonomy-terms × 90
nodes × 77
uri × 75
tokens × 55
i18n-l10n × 54
redirection × 43
6 × 38
routes × 36
entities × 26
users × 19
hooks × 18
theming × 17
navigation × 17
9 × 12
database × 11
forms × 9
commerce × 9
files × 9
migrations × 9
organic-groups × 8
importing-exporting × 8