- Issue created by @agile-mark-l
- @agile-mark-l opened merge request.
- Status changed to Needs review
over 1 year ago 7:10am 27 June 2023 - Status changed to Active
9 months ago 2:38pm 16 February 2024 - 🇫🇷France flocondetoile Lyon
Hi, implementing this hook means the alias is saved / updated twice if the entity is saved from its form. The first time by the widget element, and the second time by this hook.
What prevent you to run
Drupal::service('micro_path.pathauto_generator')->updateEntitySiteAlias($entity, $site_id, 'update');
just after programmatically call yournode->save()
?