Problem/Motivation

As part of #3365702: Move SDC Drupal\sdc\Twig to Core namespace some deprecated twig functions were added to Drupal\Core\Template\TwigExtension.

Ensure that these functions are removed as part of 11.0.0.

Steps to reproduce

Proposed resolution

Remaining tasks

Postponed on #3352256: Move code from the experimental SDC module to core

User interface changes

API changes

Data model changes

Release notes snippet

Issue fork drupal-3409456

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

plopesc created an issue. See original summary.

e0ipso’s picture

Title: Remove SDC deprecated twig functions before 11.0.0 » [PP-1] Remove SDC deprecated twig functions before 11.0.0
Parent issue: #3352256: Move code from the experimental SDC module to core »
Related issues: +#3352256: Move code from the experimental SDC module to core
quietone’s picture

Wim Leers’s picture

Title: [PP-1] Remove SDC deprecated twig functions before 11.0.0 » Remove SDC deprecated twig functions before 11.0.0
Status: Postponed » Active

plopesc’s picture

Title: Remove SDC deprecated twig functions before 11.0.0 » Remove SDC deprecated code before 11.0.0
Status: Active » Needs review

Created MR where SDC module is completely removed from the codebase and references to deprecated twig functions and LibraryDiscoveryParser service parameters BC layer are moved as well.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Removal seems good/didn't break anything.

Congrats on this one!

catch’s picture

Status: Reviewed & tested by the community » Needs work

sdc shouldn't got directly from deprecated to removed, it needs to go to obselete first. That should also come with a post update to uninstall itself. This ensures that the module is uninstalled before it's remove from the filesystem. Otherwise someone who leaves it enabled and updates to Drupal 11 will get a nearly-unrecoverable PHP error about the missing module, and the only way to resolve it is to restore a backup, or manually create a stub so it can be uninstalled cleanly.

plopesc’s picture

Status: Needs work » Needs review

Thank you for the heads up.

Brought back the SDC module info file stub and added post_update hook to uninstall it.

Finally added section https://www.drupal.org/docs/core-modules-and-themes/deprecated-and-obsol... to reflect the module situation

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Verified link https://www.drupal.org/node/3223395#s-sdc correctly goes to SDC

Ran post_update hook locally and it ran fine without issue.

alexpott’s picture

Status: Reviewed & tested by the community » Needs work

Sorting out issue credit... needs to have 11.x merged in to fix conflicts.

plopesc’s picture

Status: Needs work » Needs review

Branch updated with latest changes from 11.x and tests are green again.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Rebase appears fine.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed b8037ac and pushed to 11.x. Thanks!

  • alexpott committed b8037acd on 11.x
    Issue #3409456 by plopesc, smustgrave, quietone, e0ipso, catch: Remove...
e0ipso’s picture