Complete routing migration

Created on 28 May 2023, about 1 year ago
Updated 29 May 2023, about 1 year ago

Problem/Motivation

Part of the hook_menu routes have been migrated to g2.routing.yml, but :

  • Code still contains g2_menu and zg2_menu
  • Code still contains path constants like G2::PATH_AUTOCOMPLETE using undefined path references instead of route names.

Steps to reproduce

n.a.

Proposed resolution

Solutions are either to convert to a RouteProvider (verbose, uncommon, provides the route names) or just use g2.routing.yml and carry the route names manually into the G2 constants set (simple, common, not-DRY with regards to the route names.

Considering the costs involved and the low rate of changes on this module, the second solution is preferred. A provider may still be needed for dynamic routes like g2/wipe/%g2_node and node/%g2_node/referers

Remaining tasks

User interface changes

None.

API changes

Obsolete hook removed.

Data model changes

None.

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇫🇷France fgm Paris, France

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024