- Issue created by @theMusician
- 🇺🇸United States theMusician
Right now the annotations are only supported for the following per the change record.
Annotation class Attribute class Available since
\Drupal\Core\Annotation\Action \Drupal\Core\Action\Attribute\Action 10.2.0
\Drupal\Core\Block\Annotation\Block \Drupal\Core\Block\Attribute\Block 10.2.0Right now Able Player uses neither of these plugins. Will continue to monitor.
- 🇮🇳India Vivek Panicker Kolkata
Annotations are used by the following Field Formatters:
- AbleplayerVideoFormatter
- AbleplayerSignLanguageFormatter
- AbleplayerRemoteVideoFormatter
- AbleplayerPosterImageFormatter
- AbleplayerChapterFormatter
- AbleplayerCaptionFormatter
- AbleplayerAudioFormatterWe have Attribute available for Field formatter: https://www.drupal.org/node/3420980 →
So we can start working on this.
- Merge request !38Issue #3399990: Used PHP attributes for FieldFormatter. → (Merged) created by Vivek Panicker
- 🇮🇳India Vivek Panicker Kolkata
I have raised the MR, but that needs to be targeted against the Drupal 10.3.x branch.
I am not sure how to do that.
Also, we need to thoroughly test this. - Status changed to Needs review
7 months ago 2:18pm 7 April 2024 - 🇺🇸United States theMusician
Thanks Vivek. Not sure we need to target against 10.3.x, this should all work against the 11.x branch. The tests themselves don't run currently, so seeing them fail on the pipeline is not surprising. The project has the goal of getting tests working, but any of the functional tests have stymied us.
- Status changed to Needs work
7 months ago 5:48pm 12 April 2024 - 🇺🇸United States theMusician
The attribute conversion looks good. We'll keep this branch open as more attributes become available. As we prepare to move to support 10.x and greater versions of Drupal and remove support for 9.x, we can spin a new release that has the attributes in it and leave a 3.x version available for all on Drupal 9.x.
Thank you for your contributions to this work.
- 🇮🇳India Vivek Panicker Kolkata
@theMusician
> Not sure we need to target against 10.3.x, this should all work against the 11.x branch.
Got it, thanks.> We'll keep this branch open as more attributes become available.
But we don't have any other code using annotations.
Is there any other code for which we are waiting for the attributes to become available?> Thank you for your contributions to this work.
Happy to help! :) - Status changed to Needs review
7 months ago 8:19pm 16 April 2024 - 🇺🇸United States theMusician
You are right, we don't have any other annotations. I thought there was a section of code but it turns out I was wrong.
As we get a 3.1.x release set we'll work this in.
Setting to needs review.
-
theMusician →
committed 04f3c1fd on 3.x authored by
Vivek Panicker →
Issue #3399990: Used PHP attributes for FieldFormatter.
-
theMusician →
committed 04f3c1fd on 3.x authored by
Vivek Panicker →
- Status changed to Fixed
5 months ago 5:25pm 14 June 2024 - 🇺🇸United States CarlyGerard
Thanks Vivek, this change is merged in the dev branch.
Automatically closed - issue fixed for 2 weeks with no activity.