fix: #3639506 Use plugin attributes and replace the stable9 theme in tests

Description

Drupal 11.5 deprecates plugin annotations and the stable9 theme, which fails the phpunit (next minor) job. On Drupal 12, stable9 is gone, which errors the phpunit (next major) job.

  • Plugins use attributes instead of annotations: #[Filter] (EntityEmbedFilter), #[ContentEntityType] (EntityEmbedFakeEntity), #[EmbedType] (Entity) and #[CKEditor5Plugin] (DrupalEntity).
  • Tests use stark and starterkit_theme instead of stable9, as core's MediaPreviewTest does.
  • The CKEditor 4 plugin and the CKEditor 4 to 5 upgrade plugin keep their annotations: #3639510 removes the upgrade plugin.

Issue: https://www.drupal.org/project/entity_embed/issues/3639506

AI disclosure

Claude Code (Claude Opus 5.5) wrote the attribute conversions and the test theme changes after I identified the deprecations in the phpunit (next minor) and (next major) jobs and chose the scope of the fix. I reviewed the diff; php -l and phpcs pass locally.

🤖 Generated with Claude Code

Merge request reports

Loading
Loading