Problem/Motivation
The OembedProvider, ProviderBucket, and OEmbed (our extended version) classes still use annotation. Beginning in Drupal 10.2, support for PHP attributes was added; Support for annotations will be dropped in Drupal 12. See https://www.drupal.org/node/3395575 and https://www.drupal.org/node/3522776.
Proposed resolution
- Replace annotations with PHP attributes.
- Update requirements to
^10.2.
Remaining tasks
- Create MR
- Verify tests pass
User interface changes
None
API changes
None
Data model changes
None
Issue fork oembed_providers-3584986
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
chris burge commentedComment #4
chris burge commentedproviderskey is removed fromDrupal\oembed_providers\Plugin\media\Source\OEmbedper https://www.drupal.org/project/drupal/issues/3420997#comment-15526394. (Commit)Comment #6
chris burge commentedComment #8
chris burge commentedJumped the gun a bit here.
ConfigEntityTypeplugins didn't support PHP attribute declaration until D11.1: https://www.drupal.org/node/3505422. The workaround is to restore the attribution declaration.MediaSourceplugins added support for PHP attribute declaration in D10.3: https://www.drupal.org/node/3229001.Proposed resolution:
^10.3 || 11forMediaSourceOembedProviderandProviderBucketor add back annotations above attributes.Comment #11
chris burge commented