Problem/Motivation
Drupal core is switching from Annotations to Attributes. Tamper should also provide an Attribute class so that downstream modules can start converting.
This MR converts the tamper plugin annotations into attributes. This requires Drupal 10.2 or later.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | Schermafbeelding 2024-10-28 om 14.43.46.png | 75.54 KB | megachriz |
Issue fork tamper-3484089
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:
Comments
Comment #3
ptmkenny commentedComment #4
ptmkenny commentedComment #5
megachrizI do indeed get no Tamper plugin to choose from (using Feeds Tamper):

I think that TamperManager needs a change.
For example, \Drupal\filter\FilterPluginManager in Drupal 11.x has a reference to the attribute class:
Comment #6
ptmkenny commentedComment #7
ptmkenny commentedComment #8
megachrizI've updated the conversion:
Comment #9
megachrizI exported the definitions from before this change and after this change and then compared the two files to see if I spotted any differences that would be an error and did not see errors. There were slight differences in the plugin's descriptions. For some plugins, single quotes in the description were replaced with double quotes. But that's no error.
I used the following code for exporting the definitions:
This is good, so I've scheduled to merge the changes.