Closed (fixed)
Project:
Smart Trim
Version:
2.1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2024 at 18:50 UTC
Updated:
18 Aug 2024 at 18:34 UTC
Jump to comment: Most recent
Due to https://www.drupal.org/node/3407994, we need to figure out the best way to handle the renderPlain() call that will likely be committed as part of #2782455: Smart Trim Tokens for text with summary fields.
If 2.1.x of Smart Trim only supported 10+, then we could use the Deprecation Helper. But, since 2.1.x currently says it supports 8+, we have a problem.
So, I think the first step is to see if we're actually lying about 2.1.x and whether or not it actually runs on 8.x or 9.x.
Once we know this, then we can figure out the next step.
-mike
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:
Comments
Comment #3
lostcarpark commentedThe tests for "previous_major" are run against Drupal 9.5, so that is the oldest version I would confidently say Smart Trim will work against.
I added the following to another module that wasn't willing to drop D9 support yet:
It's a little bit hacky, especially since D9 needs to support PHP 7.4, so I had to remove named parameters from the DeprecationHelper. Hopefully we'll drop D9 support and remove the if() wrapper.
Comment #4
markie commentedMerged in an update that dropped <9.5 support for the next release.
Comment #5
ankitv18 commentedHi,
I've updated the MR with replacing the logic of implementing renderPlain deprecation with the below code block.
Pros:
cc: @markie @ultimike
Comment #6
ultimikeThanks @lostcarpark and @ankitv18 - I'm closing this issue as the fix is part of #2782455: Smart Trim Tokens for text with summary fields.
-mike