Make "path_alias" module optional

Created on 21 November 2019, almost 5 years ago
Updated 16 May 2024, 6 months ago

Problem/Motivation

In #3084983: Move all the code related to path aliases to a new (required) "path_alias" module and #3092090: Remove legacy Path Alias subsystem we moved the Path Alias subsystem to the path_alias module. The module was marked as required (and hidden) to avoid BC issues, however there is no technical requirement for this to be the case, in fact the original goal was the make the Path Alias logic optional.

Proposed resolution

Make path_alias module optional. In #3084983-10: Move all the code related to path aliases to a new (required) "path_alias" module @amateescu said:

\Drupal\system\Form\SiteInformationForm

We need to remove the alias bits from that form and alter it in the path module.

\Drupal\system\Plugin\Condition\RequestPath

We need to remove the alias bits from this plugin and override the plugin class in the path module to re-add the path alias functionality.

\Drupal\views\Plugin\views\argument_default\Raw

Not sure about this one, maybe the easiest option would be to add the path module as a dependency for the views module.

Remaining tasks

  • Reviews
  • Decide if we should add path_alias to minimal.profile to maintain consistency
  • Write something meaningful in path_alias_help
  • Deprecation test for SiteInformationForm constructor
  • Change record

User interface changes

None

API changes

TBD

Data model changes

None

Release notes snippet

The path_alias module is now optional

📌 Task
Status

Needs work

Version

11.0 🔥

Component
Path 

Last updated 1 day ago

  • Maintained by
  • 🇬🇧United Kingdom @catch
Created by

🇮🇹Italy plach Venezia

Live updates comments and jobs are added and updated live.
  • Needs architectural review

    The issue is available for high level reviews only. If there is a patch or MR it is not to be set to 'Needs work' for coding standards, minor or nit-pick changes.

  • Needs change record

    A change record needs to be drafted before an issue is committed. Note: Change records used to be called change notifications.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024