Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
In #3252386: Use PHP attributes instead of doctrine annotations we added support for attribute based plugin discovery.
As part of that issue we converted block and action plugins.
This issue is to convert \Drupal\views\Annotation\ViewsArgument
plugins to use Attributes.
Proposed resolution
- Add a class to represent the new Attribute - Example
- Update the plugin manager constructor to include both the attribute and annotation class names - example
- Convert all plugins that use the annotation to use the new attribute - example
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3425359
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 #2
quietone CreditAttribution: quietone at PreviousNext commentedComment #4
quietone CreditAttribution: quietone at PreviousNext commentedComment #6
sorlov CreditAttribution: sorlov at Skilld commentedComment #7
smustgrave CreditAttribution: smustgrave at Mobomo commentedAppears to have test failures and open thread.
Comment #8
sorlov CreditAttribution: sorlov at Skilld commentedfixed
Comment #9
smustgrave CreditAttribution: smustgrave at Mobomo commentedAppears all 40 instances of @ViewsArgument have been replaced.
Thread has been addressed,
Comment #10
alexpottAdded some comments to the MR.
Comment #12
naveenvalechaSetting back to Needs review
Fixed the title and the component of the issue
Comment #13
smustgrave CreditAttribution: smustgrave at Mobomo commentedappears to have test failures.
Comment #14
sorlov CreditAttribution: sorlov at Skilld commentedComment #15
smustgrave CreditAttribution: smustgrave at Mobomo commentedBelieve all feedback has been addressed, test failure was fixed
Comment #16
alexpottThe changes to ViewsHandlerManager need to support all handlers not just ViewsArguments. I made a suggestion abvout how to implement this and it was not implemented and there's no explanation about why not on the issue.
Comment #17
alexpott#16 is wrong. Somehow looking at out of date changes. Sorry.
Comment #18
alexpottCommitted and pushed d675ece27f to 11.x and d3a13779f9 to 10.3.x. Thanks!